@@ 95-99 (lines=5) @@ | ||
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'; |
|
97 | } else { |
|
98 | $overridePath = $container->getParameter('kernel.project_dir').'/translations'; |
|
99 | } |
|
100 | ||
101 | foreach ($container->getParameter('kernel.bundles') as $bundle => $class) { |
|
102 | $reflection = new \ReflectionClass($class); |
|
@@ 111-115 (lines=5) @@ | ||
108 | } |
|
109 | } |
|
110 | ||
111 | if (Kernel::VERSION_ID < 4000) { |
|
112 | $dir = $container->getParameter('kernel.root_dir').'/Resources/translations'; |
|
113 | } else { |
|
114 | $dir = $container->getParameter('kernel.project_dir').'/translations'; |
|
115 | } |
|
116 | ||
117 | if (is_dir($dir)) { |
|
118 | $dirs[] = $dir; |