Conditions | 3 |
Paths | 3 |
Total Lines | 15 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 12 |
Changes | 0 |
1 | <?php |
||
11 | public function process(ContainerBuilder $container) |
||
12 | { |
||
13 | $registry = $container->getDefinition('crossknowledge_datatable.registry'); |
||
14 | |||
15 | $tFound = []; |
||
16 | |||
17 | foreach ($container->findTaggedServiceIds('crossknowledge.datatable') as $id => $attributesInfos) { |
||
18 | foreach ($attributesInfos as $attributeInfos) { |
||
19 | $tFound[$attributeInfos['table_id']] = new Reference($id); |
||
20 | $container->getDefinition($id)->addMethodCall('setTableId', [$attributeInfos['table_id']]); |
||
21 | } |
||
22 | } |
||
23 | |||
24 | $registry->setArguments([$tFound]); |
||
25 | } |
||
26 | } |
||
27 |