class SerializerPass implements CompilerPassInterface

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

Traits

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

Methods

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

No description

process(ContainerBuilder $container)

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

Details

at line 34
__construct(string $serializerService = 'serializer', string $normalizerTag = 'serializer.normalizer', string $encoderTag = 'serializer.encoder')

Parameters

string $serializerService
string $normalizerTag
string $encoderTag

at line 41
process(ContainerBuilder $container)

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

Parameters

ContainerBuilder $container