Conditions | 2 |
Paths | 2 |
Total Lines | 18 |
Code Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Tests | 9 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
17 | 3 | protected function processParam( |
|
18 | $contextId, |
||
19 | array &$paramConfig, |
||
20 | ContainerBuilder $container |
||
21 | ) { |
||
22 | 3 | foreach ($paramConfig['builders'] as &$builder) { |
|
23 | 3 | $definitionName = $this->processCriteriaBuilder($contextId, $builder, $container); |
|
24 | |||
25 | $criteriaCollection = $this |
||
26 | 3 | ->buildServiceName($contextId, self::BUILDER_COLLECTION_PARAMETER); |
|
27 | $container |
||
28 | 3 | ->getDefinition($criteriaCollection) |
|
29 | 3 | ->addMethodCall( |
|
30 | 3 | 'addCriteriaBuilder', |
|
31 | 3 | [new Reference($definitionName)] |
|
32 | ); |
||
33 | } |
||
34 | 3 | } |
|
35 | |||
60 |