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