| Conditions | 3 |
| Paths | 3 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 33 | public function process(ContainerBuilder $container) |
||
| 34 | { |
||
| 35 | if (!$container->hasDefinition('Geocoder\\ProviderAggregator')) { |
||
| 36 | return; |
||
| 37 | } |
||
| 38 | |||
| 39 | $providers = []; |
||
| 40 | foreach ($container->findTaggedServiceIds('bazinga_geocoder.provider') as $providerId => $attributes) { |
||
| 41 | $providers[] = new Reference($providerId); |
||
| 42 | } |
||
| 43 | |||
| 44 | $geocoderDefinition = $container->getDefinition('Geocoder\\ProviderAggregator'); |
||
| 45 | $geocoderDefinition->addMethodCall('registerProviders', [$providers]); |
||
| 46 | } |
||
| 47 | } |
||
| 48 |