| Conditions | 3 |
| Paths | 3 |
| Total Lines | 15 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 29 | public function process(ContainerBuilder $container) |
||
| 30 | { |
||
| 31 | if (!$container->hasDefinition(GeocoderDataCollector::class)) { |
||
| 32 | return; |
||
| 33 | } |
||
| 34 | |||
| 35 | foreach ($container->findTaggedServiceIds('bazinga_geocoder.provider') as $providerId => $attributes) { |
||
| 36 | $container->register($providerId.'.debug', ProfilingProvider::class) |
||
| 37 | ->setDecoratedService($providerId) |
||
| 38 | ->setArguments([ |
||
| 39 | new Reference($providerId.'.debug.inner'), |
||
| 40 | new Reference(GeocoderLogger::class) |
||
| 41 | ]); |
||
| 42 | } |
||
| 43 | } |
||
| 44 | } |
||
| 45 |