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

Skip to content

Commit a617006

Browse files
committed
minor #30231 [FrameworkBundle] ignore not-existent service definitions (xabbuh)
This PR was merged into the 4.3-dev branch. Discussion ---------- [FrameworkBundle] ignore not-existent service definitions | Q | A | ------------- | --- | Branch? | master | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | | License | MIT | Doc PR | see the currently failing tests of the TwigBundle Commits ------- 592e03f ignore not-existent service definitions
2 parents 3df9a56 + 592e03f commit a617006

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

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

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1059,8 +1059,14 @@ private function registerTranslatorConfiguration(array $config, ContainerBuilder
10591059
throw new \UnexpectedValueException(sprintf('%s defined in translator.paths does not exist or is not a directory', $dir));
10601060
}
10611061
}
1062-
$container->getDefinition('console.command.translation_debug')->replaceArgument(5, $transPaths);
1063-
$container->getDefinition('console.command.translation_update')->replaceArgument(6, $transPaths);
1062+
1063+
if ($container->hasDefinition('console.command.translation_debug')) {
1064+
$container->getDefinition('console.command.translation_debug')->replaceArgument(5, $transPaths);
1065+
}
1066+
1067+
if ($container->hasDefinition('console.command.translation_update')) {
1068+
$container->getDefinition('console.command.translation_update')->replaceArgument(6, $transPaths);
1069+
}
10641070

10651071
if ($container->fileExists($defaultDir)) {
10661072
$dirs[] = $defaultDir;

0 commit comments

Comments
 (0)