Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
11 | public function process(ContainerBuilder $container) |
||
12 | { |
||
13 | $mappers = $container->findTaggedServiceIds(RequestObjectExtension::MAPPER_TAG); |
||
14 | |||
15 | $bindings = []; |
||
16 | foreach ($mappers as $mapperId) { |
||
17 | $bindings = array_merge($bindings, $this->configureBindings($mapperId, $container->getDefinition($mapperId))); |
||
18 | } |
||
19 | |||
20 | $requestMapperDefinition = $container->getDefinition(RequestObjectExtension::REQUEST_MAPPER_ID); |
||
21 | $requestMapperDefinition->addMethodCall('registerBindings', [$bindings]); |
||
22 | } |
||
23 | |||
40 | } |