| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 2 |
| Changes | 2 | ||
| Bugs | 1 | Features | 1 |
| 1 | <?php |
||
| 29 | 6 | public function process(ContainerBuilder $container) |
|
| 30 | { |
||
| 31 | 6 | $processorChainDefinition = $container->findDefinition('hautelook_alice.alice.processor_chain'); |
|
| 32 | |||
| 33 | 6 | $processorsIds = $container->findTaggedServiceIds('hautelook_alice.alice.processor'); |
|
| 34 | 6 | $processors = []; |
|
| 35 | 6 | foreach ($processorsIds as $processorId => $tags) { |
|
| 36 | 6 | $processors[] = new Reference($processorId); |
|
| 37 | 6 | } |
|
| 38 | |||
| 39 | 6 | $processorChainDefinition->addArgument($processors); |
|
| 40 | 6 | } |
|
| 41 | } |
||
| 42 |