SerializerPass deprecated

class SerializerPass extends SerializerPass

deprecated

since version 3.3, to be removed in 4.0. Use {@link BaseSerializerPass} instead.

Adds all services with the tags "serializer.encoder" and "serializer.normalizer" as encoders and normalizers to the Serializer service.

Traits

PriorityTaggedServiceTrait Trait that allows a generic method to find and sort service by priority option in the tag.

Methods

__construct($serializerService = 'serializer', $normalizerTag = 'serializer.normalizer', $encoderTag = 'serializer.encoder') from SerializerPass
process(ContainerBuilder $container)

You can modify the container here before it is dumped to PHP code.

from SerializerPass

Details

__construct($serializerService = 'serializer', $normalizerTag = 'serializer.normalizer', $encoderTag = 'serializer.encoder')

Parameters

$serializerService
$normalizerTag
$encoderTag

process(ContainerBuilder $container)

You can modify the container here before it is dumped to PHP code.

Parameters

ContainerBuilder $container