PolymorphicDeserializer

Read onlyYes
FinalYes
Internal

Only to be used by TYPO3 core

Table of Contents

Methods

__construct()  : mixed
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.

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
throws
DeserializerException
On this page

Search results