| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | 1 | public function process(ContainerBuilder $container) |
|
| 11 | { |
||
| 12 | 1 | $form_prefix = $this->get_prefix($container->getDefinition('form.factory')); |
|
| 13 | |||
| 14 | $validator_builder = $container |
||
| 15 | 1 | ->getDefinition('validator.builder') |
|
| 16 | 1 | ->addMethodCall('addXmlMappings', [[$form_prefix . 'config/validation.xml']]); |
|
| 17 | |||
| 18 | 1 | $container->getDefinition('translator') |
|
| 19 | 1 | ->addArgument([ |
|
| 20 | 1 | $this->get_prefix($validator_builder, 'translations/validators.'), |
|
| 21 | 1 | $form_prefix . 'translations/validators.' |
|
| 22 | ]); |
||
| 30 | } |