W3cubDocs

/Symfony 2.7

Symfony\Bundle\FrameworkBundle\DependencyInjection\Compiler\SerializerPass

class SerializerPass implements CompilerPassInterface

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

Methods

process(ContainerBuilder $container)

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

Details

public process(ContainerBuilder $container)

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

Parameters

ContainerBuilder $container