| Conditions | 3 |
| Paths | 3 |
| Total Lines | 23 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 14 |
| CRAP Score | 3.0027 |
| 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 | 'velikonja_labby.executor.executor_runner' |
||
| 26 | 2 | ); |
|
| 27 | |||
| 28 | 2 | $taggedServices = $container->findTaggedServiceIds( |
|
| 29 | 'velikonja_labby.executor' |
||
| 30 | 2 | ); |
|
| 31 | |||
| 32 | 2 | foreach ($taggedServices as $id => $tags) { |
|
| 33 | 2 | $definition->addMethodCall( |
|
| 34 | 2 | 'addExecutor', |
|
| 35 | array( |
||
| 36 | 2 | new Reference($id) |
|
| 37 | 2 | ) |
|
| 38 | 2 | ); |
|
| 39 | 2 | } |
|
| 40 | 2 | } |
|
| 41 | } |
||
| 42 |