| Conditions | 3 |
| Paths | 3 |
| Total Lines | 17 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 20 | #[\Override] |
||
| 21 | public function process(ContainerBuilder $container): void |
||
| 22 | { |
||
| 23 | if (false === $container->hasDefinition('xiidea.easy_audit.logger_factory')) { |
||
| 24 | return; |
||
| 25 | } |
||
| 26 | |||
| 27 | $definition = $container->getDefinition('xiidea.easy_audit.logger_factory'); |
||
| 28 | |||
| 29 | $calls = $definition->getMethodCalls(); |
||
| 30 | $definition->setMethodCalls(array()); |
||
| 31 | |||
| 32 | foreach ($container->findTaggedServiceIds('easy_audit.logger') as $id => $attributes) { |
||
| 33 | $definition->addMethodCall('addLogger', array($id, new Reference($id))); |
||
| 34 | } |
||
| 35 | |||
| 36 | $definition->setMethodCalls(array_merge($definition->getMethodCalls(), $calls)); |
||
| 37 | } |
||
| 39 |