function Serializer::deserialize
Overrides SerializerInterface::deserialize
File
-
vendor/
symfony/ serializer/ Serializer.php, line 135
Class
- Serializer
- Serializer serializes and deserializes data.
Namespace
Symfony\Component\SerializerCode
public final function deserialize(mixed $data, string $type, string $format, array $context = []) : mixed {
if (!$this->supportsDecoding($format, $context)) {
throw new UnsupportedFormatException(\sprintf('Deserialization for the format "%s" is not supported.', $format));
}
$data = $this->decode($data, $format, $context);
return $this->denormalize($data, $type, $format, $context);
}