Conditions | 1 |
Paths | 1 |
Total Lines | 20 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
22 | public function build(ContainerBuilder $container) |
||
23 | { |
||
24 | parent::build($container); |
||
25 | |||
26 | $container->addCompilerPass( |
||
27 | new class implements CompilerPassInterface |
||
28 | { |
||
29 | /** |
||
30 | * @inheritDoc |
||
31 | */ |
||
32 | public function process(ContainerBuilder $container) |
||
33 | { |
||
34 | $definition = new Definition('Thruster\Bundle\SymfonyJsonBodyParserBundle\RequestListener'); |
||
35 | $definition->addTag('kernel.event_subscriber'); |
||
36 | |||
37 | $container->setDefinition('thruster_json_body_parser', $definition); |
||
38 | } |
||
39 | } |
||
40 | ); |
||
41 | } |
||
42 | |||
44 |