| Total Complexity | 2 |
| Total Lines | 16 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | class translatorPass implements CompilerPassInterface |
||
| 8 | { |
||
| 9 | 1 | public function process(ContainerBuilder $container) |
|
| 10 | { |
||
| 11 | 1 | $container->getDefinition('translator') |
|
| 12 | 1 | ->addArgument([ |
|
| 13 | 1 | $this->get_prefix($container, 'validator.builder'), |
|
| 14 | 1 | $this->get_prefix($container, 'form.factory') |
|
| 15 | ]); |
||
| 16 | 1 | } |
|
| 17 | |||
| 18 | 1 | private static function get_prefix(ContainerBuilder $container, string $id) : string |
|
| 23 | } |
||
| 24 | } |