| Conditions | 3 |
| Paths | 3 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 27 | 1 | public function process(ContainerBuilder $container) |
|
| 28 | { |
||
| 29 | // get service ids form parameters |
||
| 30 | 1 | $serviceIds = $container->getParameter('cache.provider_service_ids'); |
|
| 31 | |||
| 32 | 1 | foreach ($serviceIds as $id) { |
|
| 33 | 1 | $def = $container->findDefinition($id); |
|
| 34 | 1 | if (!$def->hasTag('cache.provider')) { |
|
| 35 | 1 | $def->addTag('cache.provider'); |
|
| 36 | } |
||
| 37 | } |
||
| 38 | 1 | } |
|
| 39 | } |
||
| 40 |