Conditions | 3 |
Paths | 3 |
Total Lines | 10 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
26 | public function process(ContainerBuilder $container) |
||
27 | { |
||
28 | $definition = $container->getDefinition('mediapart_lapresselibre.endpoint_factory'); |
||
29 | $taggedServices = $container->findTaggedServiceIds('lapresselibre'); |
||
30 | |||
31 | foreach ($taggedServices as $id => $tags) { |
||
32 | foreach ($tags as $attributes) { |
||
33 | $definition->addMethodCall( |
||
34 | 'register', |
||
35 | array(new Reference($id), $attributes) |
||
36 | ); |
||
41 |