src/components/Configurator.php
protected function loadInstalledComponentsConfig(array $config = []) : array
    {
        $env    = $this->env === self::WEB ? 'web' : 'console';
        $config = FileHelper::loadExtensionsFiles('config/main.php',   $config);
        $config = FileHelper::loadExtensionsFiles("config/{$env}.php", $config);
        return $config;
    }
protected function loadInstalledComponentsConfig(array $config = []) : array
    {
        $env    = $this->env === self::WEB ? 'web' : 'console';
        $config = FileHelper::loadExtensionsFiles('config/main.php',   $config);
        $config = FileHelper::loadExtensionsFiles("config/{$env}.php", $config);
        return $config;
    }
protected function loadInstalledComponentsConfig ( array $ config = [ ] ) : array { $ env = $ this -> env === self :: WEB ? 'web' : 'console' ; $ config = FileHelper :: loadExtensionsFiles ( 'config/main.php' , $ config ) ; $ config = FileHelper :: loadExtensionsFiles ( "config/{$env}.php" , $ config ) ; return $ config ; }
Load a configuration of installed components.
@param  array $config
@return array
Load a configuration of installed components .