From 18ac673dc29e55b2cdb5ef7485149653fd02fa98 Mon Sep 17 00:00:00 2001 From: Yonel Ceruto Date: Fri, 12 Oct 2018 09:17:24 -0400 Subject: [PATCH] Setting missing default paths under BC layer --- .../Bundle/FrameworkBundle/Command/TranslationDebugCommand.php | 2 ++ .../Bundle/FrameworkBundle/Command/TranslationUpdateCommand.php | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/Symfony/Bundle/FrameworkBundle/Command/TranslationDebugCommand.php b/src/Symfony/Bundle/FrameworkBundle/Command/TranslationDebugCommand.php index 82ec353d52..ef06d0624c 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Command/TranslationDebugCommand.php +++ b/src/Symfony/Bundle/FrameworkBundle/Command/TranslationDebugCommand.php @@ -144,6 +144,8 @@ EOF $this->translator = $this->getContainer()->get('translator'); $this->reader = $this->getContainer()->get('translation.reader'); $this->extractor = $this->getContainer()->get('translation.extractor'); + $this->defaultTransPath = $this->getContainer()->getParameter('translator.default_path'); + $this->defaultViewsPath = $this->getContainer()->getParameter('twig.default_path'); } $io = new SymfonyStyle($input, $output); diff --git a/src/Symfony/Bundle/FrameworkBundle/Command/TranslationUpdateCommand.php b/src/Symfony/Bundle/FrameworkBundle/Command/TranslationUpdateCommand.php index c7dff1cc74..5d63fc8dc0 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Command/TranslationUpdateCommand.php +++ b/src/Symfony/Bundle/FrameworkBundle/Command/TranslationUpdateCommand.php @@ -138,6 +138,8 @@ EOF $this->reader = $this->getContainer()->get('translation.reader'); $this->extractor = $this->getContainer()->get('translation.extractor'); $this->defaultLocale = $this->getContainer()->getParameter('kernel.default_locale'); + $this->defaultTransPath = $this->getContainer()->getParameter('translator.default_path'); + $this->defaultViewsPath = $this->getContainer()->getParameter('twig.default_path'); } $io = new SymfonyStyle($input, $output);