SerializerPass

SerializerPass

class SerializerPass implements CompilerPassInterface

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')
process(ContainerBuilder $container)

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

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

© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.3/Symfony/Component/Serializer/DependencyInjection/SerializerPass.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部