Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
30 | public function process(ContainerBuilder $container) |
||
31 | { |
||
32 | $serviceIds = array_keys($container->findTaggedServiceIds('cache.provider')); |
||
33 | foreach ($serviceIds as $serviceId) { |
||
34 | $cleanName = str_replace('.inner', '', $serviceId); |
||
35 | $instance = $container->get($serviceId); |
||
36 | $class = get_class($instance); |
||
37 | |||
38 | $container->setAlias($cleanName, $serviceId); |
||
39 | $container->setAlias($class, $cleanName); |
||
40 | } |
||
41 | } |
||
42 | } |
||
43 |