| Conditions | 3 |
| Paths | 3 |
| Total Lines | 14 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 12 |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | public function process(ContainerBuilder $container) |
||
| 12 | { |
||
| 13 | if (!$container->has(ConsignmentServiceCollection::class)) { |
||
| 14 | return; |
||
| 15 | } |
||
| 16 | |||
| 17 | $definition = $container->findDefinition(ConsignmentServiceCollection::class); |
||
| 18 | |||
| 19 | $taggedServices = $container->findTaggedServiceIds('ldc.consignment_service'); |
||
| 20 | |||
| 21 | foreach ($taggedServices as $id => $tags) { |
||
| 22 | $definition->addMethodCall('addConsignmentService', [new Reference($id)]); |
||
| 23 | } |
||
| 24 | } |
||
| 25 | } |