Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
1 | <?php |
||
20 | private function saveTaggedServices(ContainerBuilder $container, $tag, $fileName) |
||
21 | { |
||
22 | $services = array(); |
||
23 | foreach ($container->findTaggedServiceIds($tag) as $id => $attributes) { |
||
24 | $services[] = $id; |
||
25 | } |
||
26 | $php = '<?php return ' . var_export($services, true) . ';'; |
||
27 | file_put_contents($container->getParameter('kernel.cache_dir') . DIRECTORY_SEPARATOR . $fileName, $php); |
||
28 | } |
||
29 | |||
43 |