SerializerAwareEncoder deprecated

class SerializerAwareEncoder implements SerializerAwareInterface

deprecated

since version 3.2, to be removed in 4.0. Use the SerializerAwareTrait instead.

SerializerAware Encoder implementation.

Traits

SerializerAwareTrait SerializerAware trait.

Methods

setSerializer(SerializerInterface $serializer)

Sets the serializer.

from SerializerAwareTrait

Details

setSerializer(SerializerInterface $serializer)

Sets the serializer.

Parameters

SerializerInterface $serializer A SerializerInterface instance

© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/4.0/Symfony/Component/Serializer/Encoder/SerializerAwareEncoder.html