Skip to content

Latest commit

 

History

History
14 lines (9 loc) · 371 Bytes

CannotSerializeKey.md

File metadata and controls

14 lines (9 loc) · 371 Bytes

CannotSerializeKey extends HaliteAlert

Namespace: \ParagonIE\Halite\Alerts

All key objects should never permit this usage:

$key = KeyFactory::generateEncryptionKey();
$store = serialize($key);

If you attempt to do this, it will throw this exception.

Instead, use KeyFactory::save($key, '/path/to/file'); for persistent storage.