Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 6fd21ce

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

File tree

1 file changed

+3
-1
lines changed
Filter options

1 file changed

+3
-1
lines changed

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

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php
+3-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.