| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types = 1); |
||
| 17 | public function process(ContainerBuilder $container) |
||
| 18 | { |
||
| 19 | $definition = $container->findDefinition('actiane.entitywatch.callback_locator'); |
||
| 20 | |||
| 21 | $taggedServices = $container->findTaggedServiceIds('actiane.entitychangewatch.callback'); |
||
| 22 | |||
| 23 | $callbacks = []; |
||
| 24 | foreach ($taggedServices as $id => $tags) { |
||
| 25 | $callbacks[$id] = new Reference($id); |
||
| 26 | } |
||
| 27 | |||
| 28 | $definition->addArgument($callbacks); |
||
| 29 | } |
||
| 31 |