Conditions | 2 |
Paths | 2 |
Total Lines | 7 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 3 |
CRAP Score | 2.2559 |
Changes | 1 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
19 | 1 | public function process(ContainerBuilder $container) |
|
20 | { |
||
21 | 1 | if ($container->hasDefinition('zicht_url.cache')) { |
|
22 | $container->setAlias('zicht_url.provider', 'zicht_url.cache_wrapper'); |
||
23 | $container->getDefinition('zicht_url.cache')->addTag('zicht_cache.cache_stats'); |
||
24 | } else { |
||
25 | 1 | $container->setAlias('zicht_url.provider', 'zicht_url.provider.delegator'); |
|
26 | } |
||
29 |