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
-------
18ac673dc2
Setting missing default paths under BC layer
This commit is contained in:
commit
f89ef42ba4
@ -144,6 +144,8 @@ EOF
|
|||||||
$this->translator = $this->getContainer()->get('translator');
|
$this->translator = $this->getContainer()->get('translator');
|
||||||
$this->reader = $this->getContainer()->get('translation.reader');
|
$this->reader = $this->getContainer()->get('translation.reader');
|
||||||
$this->extractor = $this->getContainer()->get('translation.extractor');
|
$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);
|
$io = new SymfonyStyle($input, $output);
|
||||||
|
@ -138,6 +138,8 @@ EOF
|
|||||||
$this->reader = $this->getContainer()->get('translation.reader');
|
$this->reader = $this->getContainer()->get('translation.reader');
|
||||||
$this->extractor = $this->getContainer()->get('translation.extractor');
|
$this->extractor = $this->getContainer()->get('translation.extractor');
|
||||||
$this->defaultLocale = $this->getContainer()->getParameter('kernel.default_locale');
|
$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);
|
$io = new SymfonyStyle($input, $output);
|
||||||
|
Reference in New Issue
Block a user