Skip to content

Commit b98cd6a

Browse files
committed
Setting missing default paths under BC layer
1 parent f14d218 commit b98cd6a

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

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);

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)