| Conditions | 4 |
| Paths | 4 |
| Total Lines | 10 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 2 |
| CRAP Score | 10.75 |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 21 | 1 | public function process(ContainerBuilder $container) |
|
| 22 | { |
||
| 23 | 1 | if ($container->hasDefinition('zicht_url.provider.delegator')) { |
|
| 24 | $definition = $container->getDefinition('zicht_url.provider.delegator'); |
||
| 25 | foreach ($container->findTaggedServiceIds('zicht_url.url_provider') as $id => $attributes) { |
||
| 26 | $priority = 0; |
||
| 27 | if (isset($attributes[0]['priority'])) { |
||
| 28 | $priority = (int)$attributes[0]['priority']; |
||
| 29 | } |
||
| 30 | $definition->addMethodCall('addProvider', array(new Reference($id), $priority)); |
||
| 31 | } |
||
| 35 |