1. 8.2.x vendor/symfony/serializer/SerializerInterface.php SerializerInterface
  2. 8.0.x vendor/symfony/serializer/SerializerInterface.php SerializerInterface
  3. 8.1.x vendor/symfony/serializer/SerializerInterface.php SerializerInterface
  4. 8.3.x vendor/symfony/serializer/SerializerInterface.php SerializerInterface

Defines the interface of the Serializer.

@author Jordi Boggiano <j.boggiano@seld.be>


Expanded class hierarchy of SerializerInterface

All classes that implement SerializerInterface

8 files declare their use of SerializerInterface
ArrayDenormalizer.php in vendor/symfony/serializer/Normalizer/ArrayDenormalizer.php
DefaultExceptionSubscriber.php in core/modules/serialization/src/EventSubscriber/DefaultExceptionSubscriber.php
RequestHandler.php in core/modules/rest/src/RequestHandler.php
Serializer.php in core/modules/rest/src/Plugin/views/style/Serializer.php
SerializerAwareEncoder.php in vendor/symfony/serializer/Encoder/SerializerAwareEncoder.php

... See full list


vendor/symfony/serializer/SerializerInterface.php, line 19


View source
interface SerializerInterface
   * Serializes data in the appropriate format.
   * @param mixed  $data    any data
   * @param string $format  format name
   * @param array  $context options normalizers/encoders have access to
   * @return string
  public function serialize($data, $format, array $context = array());

   * Deserializes data into the given type.
   * @param mixed  $data
   * @param string $type
   * @param string $format
   * @param array  $context
   * @return object
  public function deserialize($data, $type, $format, array $context = array());


Contains filters are case sensitive
Namesort descending Modifiers Type Description
SerializerInterface::deserialize public function Deserializes data into the given type.
SerializerInterface::serialize public function Serializes data in the appropriate format.