Conditions | 3 |
Paths | 3 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 3.0261 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
22 | 3 | public function process(ContainerBuilder $container): void |
|
23 | { |
||
24 | 3 | if (!$container->hasDefinition('logger')) { |
|
25 | return; |
||
26 | } |
||
27 | |||
28 | 3 | $tagged_services = $container->findTaggedServiceIds(self::TAG); |
|
29 | |||
30 | 3 | foreach ($tagged_services as $id => $tags) { |
|
31 | 1 | $definition = $container->findDefinition($id); |
|
32 | 1 | $definition->addMethodCall('setLogger', [new Reference('logger')]); |
|
33 | } |
||
36 |