public function SerializerAwareInterface::setSerializer

Sets the owning Serializer object

Parameters

SerializerInterface $serializer:

2 methods override SerializerAwareInterface::setSerializer()
SerializerAwareEncoder::setSerializer in drupal/core/vendor/symfony/serializer/Symfony/Component/Serializer/Encoder/SerializerAwareEncoder.php
Sets the owning Serializer object
SerializerAwareNormalizer::setSerializer in drupal/core/vendor/symfony/serializer/Symfony/Component/Serializer/Normalizer/SerializerAwareNormalizer.php
Sets the owning Serializer object

File

drupal/core/vendor/symfony/serializer/Symfony/Component/Serializer/SerializerAwareInterface.php, line 28

Class

SerializerAwareInterface
Defines the interface of encoders

Namespace

Symfony\Component\Serializer

Code

public function setSerializer(SerializerInterface $serializer);