Conditions | 3 |
Paths | 3 |
Total Lines | 23 |
Code Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Tests | 11 |
CRAP Score | 3.0052 |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
18 | 2 | public function process(ContainerBuilder $container) |
|
19 | { |
||
20 | 2 | if (! $container->hasDefinition('velikonja_labby.executor.executor_runner')) { |
|
21 | return; |
||
22 | } |
||
23 | |||
24 | 2 | $definition = $container->getDefinition( |
|
25 | 2 | 'velikonja_labby.executor.executor_runner' |
|
26 | ); |
||
27 | |||
28 | 2 | $taggedServices = $container->findTaggedServiceIds( |
|
29 | 2 | 'velikonja_labby.executor' |
|
30 | ); |
||
31 | |||
32 | 2 | foreach ($taggedServices as $id => $tags) { |
|
33 | 2 | $definition->addMethodCall( |
|
34 | 2 | 'addExecutor', |
|
35 | array( |
||
36 | 2 | new Reference($id) |
|
37 | ) |
||
38 | ); |
||
39 | } |
||
40 | 2 | } |
|
41 | } |
||
42 |