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