Serializor\Serializor
class
Documentation
Serializor class responsible for serializing and deserializing data, particularly closures and anonymous classes.
Properties (2)
private
static
?
Serializor\Codec $singleton
Singleton instance for the default Serializor codec.
private
static
?
string $defaultSecret
Methods (5)
Serializes the given value using the default Serializor instance.
Unserializes the given string using the default Serializor instance.
Retrieves the default Codec instance. This is a singleton, meaning
Sets a custom secret key for the default Serializor instance, which can be
Register a custom factory for handling user-defined types.