| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 25 | 2 | public function process(ContainerBuilder $container): void |
|
| 26 | { |
||
| 27 | /* @var Definition $def */ |
||
| 28 | 2 | if (!$container->hasDefinition(EditInPlaceTranslator::class)) { |
|
| 29 | 1 | return; |
|
| 30 | } |
||
| 31 | |||
| 32 | // Replace the Twig Translator by a custom HTML one |
||
| 33 | 1 | $container->getDefinition('twig.extension.trans')->replaceArgument(0, new Reference(EditInPlaceTranslator::class)); |
|
| 34 | 1 | } |
|
| 36 |