Conditions | 3 |
Paths | 3 |
Total Lines | 14 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 3.0123 |
Changes | 0 |
1 | <?php |
||
12 | 5 | public function process(ContainerBuilder $container) |
|
13 | { |
||
14 | 5 | if (!$container->hasDefinition('bankiru_api.api_factory.chain')) { |
|
15 | return; |
||
16 | } |
||
17 | |||
18 | 5 | $chain = $container->getDefinition('bankiru_api.api_factory.chain'); |
|
19 | |||
20 | 5 | $factories = $container->findTaggedServiceIds('bankiru.api_factory'); |
|
21 | |||
22 | 5 | foreach ($factories as $id => $tags) { |
|
23 | 5 | $chain->addMethodCall('add', [new Reference($id)]); |
|
24 | 5 | } |
|
25 | 5 | } |
|
26 | } |
||
27 |