Conditions | 2 |
Paths | 2 |
Total Lines | 15 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
21 | public function process(ContainerBuilder $container): void |
||
22 | { |
||
23 | $serviceManager = $container->findDefinition(StaticServiceManager::class); |
||
24 | |||
25 | $services = []; |
||
26 | |||
27 | foreach ($container->findTaggedServiceIds('core23.shariff') as $id => $attributes) { |
||
28 | $definition = $container->getDefinition($id); |
||
29 | $definition->setPublic(true); |
||
30 | |||
31 | $services[] = new Reference($id); |
||
32 | } |
||
33 | |||
34 | $serviceManager->replaceArgument(0, $services); |
||
35 | } |
||
36 | } |
||
37 |