Conditions | 2 |
Paths | 2 |
Total Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
21 | public function process(DI\ContainerBuilder $container) |
||
22 | { |
||
23 | // find all service IDs with the appropriate tag |
||
24 | $taggedServices = $container->findTaggedServiceIds('pomm.pooler'); |
||
25 | |||
26 | $poolers = []; |
||
27 | foreach ($taggedServices as $id => $tags) { |
||
28 | $poolers[] = new DI\Reference($id); |
||
29 | } |
||
30 | |||
31 | $definition = $container->getDefinition('pomm.session_builder.configurator'); |
||
32 | $definition->replaceArgument(0, $poolers); |
||
33 | } |
||
34 | } |
||
35 |