Merge pull request #471 from TonisOrmisson/fix-bootstrap-order

fixed translations not initialized
This commit is contained in:
Lorenzo Milesi
2022-09-06 20:12:58 +02:00
committed by GitHub

View File

@ -46,8 +46,8 @@ class Bootstrap implements BootstrapInterface
{ {
if ($app->hasModule('user') && $app->getModule('user') instanceof Module) { if ($app->hasModule('user') && $app->getModule('user') instanceof Module) {
$map = $this->buildClassMap($app->getModule('user')->classMap); $map = $this->buildClassMap($app->getModule('user')->classMap);
$this->initContainer($app, $map);
$this->initTranslations($app); $this->initTranslations($app);
$this->initContainer($app, $map);
$this->initMailServiceConfiguration($app, $app->getModule('user')); $this->initMailServiceConfiguration($app, $app->getModule('user'));
if ($app instanceof WebApplication) { if ($app instanceof WebApplication) {