Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
16 | protected function addMethodCallToCrawler(ContainerBuilder $container, $tag, $methodName) |
||
17 | { |
||
18 | $definition = $container->findDefinition('mediamonks_crawler.crawler'); |
||
19 | |||
20 | $taggedServices = $container->findTaggedServiceIds($tag); |
||
21 | foreach ($taggedServices as $id => $tags) { |
||
22 | $definition->addMethodCall($methodName, [new Reference($id)]); |
||
23 | } |
||
24 | } |
||
25 | } |
||
26 |