Conditions | 3 |
Paths | 3 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
31 | public function process(ContainerBuilder $container) |
||
32 | { |
||
33 | $antQueenDefinition = $container->getDefinition('veslo.anthill.vacancy.ant_queen'); |
||
34 | |||
35 | $roadmapIds = $container->findTaggedServiceIds(RoadmapInterface::TAG); |
||
36 | |||
37 | foreach ($roadmapIds as $id => $tags) { |
||
38 | foreach ($tags as $attributes) { |
||
39 | $roadmapName = $attributes['roadmapName']; |
||
40 | $reference = new Reference($id); |
||
41 | |||
42 | $antQueenDefinition->addMethodCall('addRoadmap', [$roadmapName, $reference]); |
||
43 | } |
||
47 |