| Conditions | 3 |
| Paths | 3 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | public function process(ContainerBuilder $container): void |
||
| 16 | { |
||
| 17 | if (!$container->hasDefinition(ProviderAggregator::class)) { |
||
| 18 | return; |
||
| 19 | } |
||
| 20 | |||
| 21 | $providers = []; |
||
| 22 | foreach ($container->findTaggedServiceIds('dh_navigation.provider') as $providerId => $attributes) { |
||
| 23 | $providers[] = new Reference($providerId); |
||
| 24 | } |
||
| 25 | |||
| 26 | $definition = $container->getDefinition(ProviderAggregator::class); |
||
| 27 | $definition->addMethodCall('registerProviders', [$providers]); |
||
| 28 | } |
||
| 30 |