Conditions | 4 |
Paths | 4 |
Total Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 6.7441 |
Changes | 0 |
1 | <?php |
||
14 | 1 | public function process(ContainerBuilder $container) |
|
15 | { |
||
16 | 1 | $loader = $container->getDefinition(Loader::class); |
|
17 | |||
18 | 1 | foreach ($container->findTaggedServiceIds('shapin_datagen.dbal_table') as $id => $tags) { |
|
19 | $groups = []; |
||
20 | foreach ($tags as $attributes) { |
||
21 | if (isset($attributes['group'])) { |
||
22 | $groups[] = $attributes['group']; |
||
23 | } |
||
24 | } |
||
25 | $loader->addMethodCall('addTable', [new Reference($id), $groups]); |
||
26 | } |
||
27 | 1 | } |
|
28 | } |
||
29 |