Conditions | 3 |
Paths | 3 |
Total Lines | 12 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
11 | public function process(ContainerBuilder $container) |
||
12 | { |
||
13 | if (false === $container->hasDefinition('rpc_routing.resolver')) { |
||
14 | return; |
||
15 | } |
||
16 | |||
17 | $definition = $container->getDefinition('rpc_routing.resolver'); |
||
18 | |||
19 | foreach ($container->findTaggedServiceIds('routing.loader') as $id => $attributes) { |
||
20 | $definition->addMethodCall('addLoader', array(new Reference($id))); |
||
21 | } |
||
22 | } |
||
23 | } |