W3cubDocs

/Symfony 4.1

SerializerAwareTrait

trait SerializerAwareTrait

SerializerAware trait.

Properties

protected SerializerInterface $serializer

Methods

setSerializer(SerializerInterface $serializer)

Sets the serializer.

Details

setSerializer(SerializerInterface $serializer)

Sets the serializer.

Parameters

SerializerInterface $serializer A SerializerInterface instance

© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/Serializer/SerializerAwareTrait.html