Commit f64f8d33 authored by Tino Goratsch's avatar Tino Goratsch

remove the installer specific TranslatorConfigurator

parent c53fc10d
......@@ -36,11 +36,6 @@ services:
- '@core.environment.application_path'
- '@core.http.redirect_response'
core.i18n.translator_configurator:
class: ACP3\Modules\ACP3\Installer\Core\I18n\TranslatorConfigurator
arguments:
- 'en_US'
core.controller.install:
abstract: true
arguments:
......
......@@ -42,7 +42,7 @@ services:
class: ACP3\Modules\ACP3\Installer\Core\Session\SessionHandler
system.model.settingsrepository:
class: ACP3\Modules\ACP3\Installer\Core\Repository\SettingsRepository
class: ACP3\Modules\ACP3\Installer\Repository\SettingsRepository
arguments:
- '%core.environment%'
......
......@@ -18,6 +18,7 @@
"require": {
"acp3/composer-installer": "^1.0",
"acp3/core": "^4.46.0",
"acp3/module-system": "^4.46.0",
"acp3/module-users": "^4.46.0"
},
"autoload": {
......
<?php
/**
* Copyright (c) by the ACP3 Developers.
* See the LICENSE file at the top-level module directory for licensing details.
*/
namespace ACP3\Modules\ACP3\Installer\Core\I18n;
use ACP3\Core\I18n\Translator;
class TranslatorConfigurator
{
/**
* @var string
*/
private $defaultLocale;
public function __construct(string $defaultLocale)
{
$this->defaultLocale = $defaultLocale;
}
public function configure(Translator $translator): void
{
$translator->setLocale($this->defaultLocale);
}
}
......@@ -5,7 +5,7 @@
* See the LICENSE file at the top-level module directory for licensing details.
*/
namespace ACP3\Modules\ACP3\Installer\Core\Repository;
namespace ACP3\Modules\ACP3\Installer\Repository;
use ACP3\Core\Environment\ApplicationMode;
use ACP3\Core\Model\Repository\SettingsAwareRepositoryInterface;
......@@ -28,6 +28,11 @@ class SettingsRepository implements SettingsAwareRepositoryInterface
public function getAllSettings()
{
return [
[
'module_name' => 'system',
'name' => 'lang',
'value' => 'en_US',
],
[
'module_name' => 'system',
'name' => 'maintenance_mode',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment