| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 18 | public function process(ContainerBuilder $container) |
||
| 19 | { |
||
| 20 | if (false === $container->hasDefinition('validator')) { |
||
| 21 | return; |
||
| 22 | } |
||
| 23 | |||
| 24 | $container->setDefinition( |
||
| 25 | ValidatorMiddleware::SERVICE_ID, |
||
| 26 | new Definition(ValidatorMiddleware::class, [ new Reference('validator') ]) |
||
| 27 | ); |
||
| 28 | } |
||
| 29 | } |
||
| 31 |