Console\Locale\EnableLocaleCommand::__construct PHP Method

__construct() public method

public __construct ( ModulesSettings $settings, array $installedModules, boolean $multiLanguageIsEnabled, string | null $name = null )
$settings common\ModulesSettings
$installedModules array
$multiLanguageIsEnabled boolean
$name string | null
    public function __construct(ModulesSettings $settings, array $installedModules, $multiLanguageIsEnabled, $name = null)
    {
        parent::__construct($name);
        $this->settings = $settings;
        $this->multiLanguageIsEnabled = $multiLanguageIsEnabled;
        // some core modules don't have locale so we remove them to prevent showing errors we know of
        $this->installedModules = array_filter($installedModules, function ($installedModule) {
            return !in_array($installedModule, ['Error', 'Core', 'Authentication'], true);
        });
    }