@@ 84-88 (lines=5) @@ | ||
81 | $translator = $container->getDefinition('kunstmaan_translator.service.translator.translator'); |
|
82 | ||
83 | $dirs = []; |
|
84 | if (class_exists('Symfony\Component\Validator\Validation')) { |
|
85 | $r = new \ReflectionClass('Symfony\Component\Validator\Validation'); |
|
86 | ||
87 | $dirs[] = dirname($r->getFilename()).'/Resources/translations'; |
|
88 | } |
|
89 | if (class_exists('Symfony\Component\Form\Form')) { |
|
90 | $r = new \ReflectionClass('Symfony\Component\Form\Form'); |
|
91 | ||
@@ 89-93 (lines=5) @@ | ||
86 | ||
87 | $dirs[] = dirname($r->getFilename()).'/Resources/translations'; |
|
88 | } |
|
89 | if (class_exists('Symfony\Component\Form\Form')) { |
|
90 | $r = new \ReflectionClass('Symfony\Component\Form\Form'); |
|
91 | ||
92 | $dirs[] = dirname($r->getFilename()).'/Resources/translations'; |
|
93 | } |
|
94 | ||
95 | if (Kernel::VERSION_ID < 4000) { |
|
96 | $overridePath = $container->getParameter('kernel.root_dir').'/Resources/%s/translations'; |