core/Registry.php
private function autoloadConfigsFiles()
    {
        $config = array();

        foreach (glob(YOUTOCMS ."/app/configs/*.config.php") as $file_config) {
            $config =  include $file_config;

            foreach ($config as $name => $component) {
                $this->config[$name] = $component;
            }
        }

        //Достаем язык
        foreach ( require self::YOUTO_APP . '/lang/' . $this->config['lng'] . '.php' as $key => $value ) {
            $this->config[ $key ] = $value;
        }

    }
private function autoloadConfigsFiles()
    {
        $config = array();

        foreach (glob(YOUTOCMS ."/app/configs/*.config.php") as $file_config) {
            $config =  include $file_config;

            foreach ($config as $name => $component) {
                $this->config[$name] = $component;
            }
        }

        //Достаем язык
        foreach ( require self::YOUTO_APP . '/lang/' . $this->config['lng'] . '.php' as $key => $value ) {
            $this->config[ $key ] = $value;
        }

    }
* Автозагрузка файлов конфигурации из дирректории
/app/configs
Подгружаются все файлы с расширением *.configs.php
@return mixed