Conditions | 4 |
Paths | 4 |
Total Lines | 17 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 1 | Features | 1 |
1 | <?php |
||
25 | public function process(ContainerBuilder $container) |
||
26 | { |
||
27 | if (!$container->hasDefinition('swp_bridge.http_push.validator_chain')) { |
||
28 | return; |
||
29 | } |
||
30 | |||
31 | $definition = $container->getDefinition('swp_bridge.http_push.validator_chain'); |
||
32 | |||
33 | foreach ($container->findTaggedServiceIds('validator.http_push_validator') as $id => $tags) { |
||
34 | foreach ($tags as $attributes) { |
||
35 | $definition->addMethodCall( |
||
36 | 'addValidator', |
||
37 | array(new Reference($id), $attributes['alias']) |
||
38 | ); |
||
39 | } |
||
40 | } |
||
41 | } |
||
42 | } |
||
43 |