Conditions | 3 |
Paths | 3 |
Total Lines | 17 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
17 | public function process(ContainerBuilder $container) |
||
18 | { |
||
19 | if (!$container->hasDefinition(self::FIELD_HANDLER_REGISTRY)) { |
||
20 | return; |
||
21 | } |
||
22 | |||
23 | $actionAggregate = $container->getDefinition(self::FIELD_HANDLER_REGISTRY); |
||
24 | |||
25 | foreach ($container->findTaggedServiceIds(self::FIELD_HANDLER) as $id => $attributes) { |
||
26 | $actionAggregate->addMethodCall( |
||
27 | 'addHandler', |
||
28 | array( |
||
29 | new Reference($id), |
||
30 | ) |
||
31 | ); |
||
32 | } |
||
33 | } |
||
34 | } |
||
35 |