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