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