| Conditions | 3 |
| Paths | 3 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 3 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 17 | 3 | public function process(ContainerBuilder $container) |
|
| 18 | { |
||
| 19 | 2 | if (!$container->hasDefinition('zenstruck_cache.crawler')) { |
|
| 20 | 2 | return; |
|
| 21 | } |
||
| 22 | |||
| 23 | 1 | $definition = $container->getDefinition('zenstruck_cache.crawler'); |
|
| 24 | 1 | $taggedServices = $container->findTaggedServiceIds('zenstruck_cache.url_provider'); |
|
| 25 | |||
| 26 | 1 | foreach ($taggedServices as $id => $attributes) { |
|
| 27 | 1 | $definition->addMethodCall('addUrlProvider', [new Reference($id)]); |
|
| 28 | 1 | } |
|
| 29 | 2 | } |
|
| 30 | } |
||
| 31 |