PolymorphicDeserializer
Read onlyYes
FinalYes
Only to be used by TYPO3 core
Table of Contents
Methods
- deserialize() : mixed
- Validates the serialized payload by checking a static list of base classes or interfaces to be included in the de-serialized output. If a non-allowed class is hit, the method throws an PolymorphicDeserializerException.
- parseClassNames() : array<string|int, mixed>
Methods
deserialize()
Validates the serialized payload by checking a static list of base classes or interfaces to be included in the de-serialized output. If a non-allowed class is hit, the method throws an PolymorphicDeserializerException.
public
deserialize(string $payload, array<int, class-string> $allowedClasses) : mixed
If the serialized payload is syntactically incorrect, PolymorphicDeserializerException is thrown as well.
Parameters
- $payload : string
- $allowedClasses : array<int, class-string>
Tags
parseClassNames()
public
parseClassNames(string $payload) : array<string|int, mixed>
Parameters
- $payload : string