Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
23 | public function process(ContainerBuilder $container): void |
||
24 | { |
||
25 | $definition = $container->getDefinition(OutputFormatterRegistry::class); |
||
26 | $taggedServices = $container->findTaggedServiceIds(Container::OUTPUT_FORMATTER_TAG); |
||
27 | $services = []; |
||
28 | foreach ($taggedServices as $id => $tags) { |
||
29 | $services[] = new Reference($id); |
||
30 | } |
||
31 | $definition->setArgument(0, $services); |
||
32 | } |
||
34 |