Conditions | 3 |
Paths | 3 |
Total Lines | 17 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
13 | public function process(ContainerBuilder $container) |
||
14 | { |
||
15 | $ids = $container->findTaggedServiceIds(self::NAME.'.description_loader'); |
||
16 | |||
17 | if (!count($ids)) { |
||
18 | return; |
||
19 | } |
||
20 | |||
21 | $resolverDefinition = $container->findDefinition(self::NAME.'.description_loader.resolver'); |
||
22 | |||
23 | $loaders = []; |
||
24 | |||
25 | foreach ($ids as $id => $options) { |
||
26 | $loaders[] = new Reference($id); |
||
27 | } |
||
28 | |||
29 | $resolverDefinition->setArguments([$loaders]); |
||
30 | } |
||
31 | } |