Conditions | 3 |
Paths | 3 |
Total Lines | 13 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
23 | public function process(ContainerBuilder $container) |
||
24 | { |
||
25 | if (!$container->hasDefinition('jose.compression_manager')) { |
||
26 | return; |
||
27 | } |
||
28 | |||
29 | $definition = $container->getDefinition('jose.compression_manager'); |
||
30 | |||
31 | $taggedServices = $container->findTaggedServiceIds('jose.compression'); |
||
32 | foreach ($taggedServices as $id => $tags) { |
||
33 | $definition->addMethodCall('addCompressionMethod', [new Reference($id)]); |
||
34 | } |
||
35 | } |
||
36 | } |
||
37 |