Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1dce8c1

Browse files
committed
allow null for framework.translator.default_path
Allow to configure framework.translator.default_path as it was until symfony 3.4.x (fix BC compatibility). fixes #37111
1 parent ed576b2 commit 1dce8c1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1213,7 +1213,9 @@ private function registerTranslatorConfiguration(array $config, ContainerBuilder
12131213
$container->getDefinition('console.command.translation_update')->replaceArgument(6, $transPaths);
12141214
}
12151215

1216-
if ($container->fileExists($defaultDir)) {
1216+
if (null == $defaultDir) {
1217+
// allow null
1218+
} elseif ($container->fileExists($defaultDir)) {
12171219
$dirs[] = $defaultDir;
12181220
} else {
12191221
$nonExistingDirs[] = $defaultDir;

0 commit comments

Comments
 (0)