Conditions | 3 |
Paths | 3 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 3 |
Changes | 2 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
31 | 11 | public function process(ContainerBuilder $container) |
|
32 | { |
||
33 | 11 | if (!$container->hasDefinition($this->warmerId)) { |
|
34 | 1 | return; |
|
35 | } |
||
36 | 10 | $definition = $container->getDefinition($this->warmerId); |
|
37 | |||
38 | 10 | foreach ($container->findTaggedServiceIds(ConfigCache::TAG_CACHE_WARMER) as $configId => $attributes) { |
|
39 | 10 | $definition->addMethodCall('addConfig', array(new Reference($configId))); |
|
40 | 10 | } |
|
41 | 10 | } |
|
42 | } |
||
43 |