8000 bug #28835 [FrameworkBundle] Setting missing default paths under BC l… · symfony/symfony@f89ef42 · GitHub
[go: up one dir, main page]

Skip to content

Commit f89ef42

Browse files
committed
bug #28835 [FrameworkBundle] Setting missing default paths under BC layer (yceruto)
This PR was merged into the 3.4 branch. Discussion ---------- [FrameworkBundle] Setting missing default paths under BC layer | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - Commits ------- 18ac673 Setting missing default paths under BC layer
2 parents ec32d43 + 18ac673 commit f89ef42

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/Symfony/Bundle/FrameworkBundle/Command/TranslationDebugCommand.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,8 @@ protected function execute(InputInterface $input, OutputInterface $output)
144144
$this->translator = $this->getContainer()->get('translator');
145145
$this->reader = $this->getContainer()->get('translation.reader');
146146
$this->extractor = $this->getContainer()->get('translation.extractor');
147+
$this->defaultTransPath = $this->getContainer()->getParameter('translator.default_path');
148+
$this->defaultViewsPath = $this->getContainer()->getParameter('twig.default_path');
147149
}
148150

149151
$io = new SymfonyStyle($input, $output);

src/Symfony/Bundle/FrameworkBundle/Command/TranslationUpdateCommand.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,8 @@ protected function execute(InputInterface $input, OutputInterface $output)
138138
$this->reader = $this->getContainer()->get('translation.reader');
139139
$this->extractor = $this->getContainer()->get('translation.extractor');
140140
$this->defaultLocale = $this->getContainer()->getParameter('kernel.default_locale');
141+
$this->defaultTransPath = $this->getContainer()->getParameter('translator.default_path');
142+
$this->defaultViewsPath = $this->getContainer()->getParameter('twig.default_path');
141143
}
142144

143145
$io = new SymfonyStyle($input, $output);

0 commit comments

Comments
 (0)
0