src/Bootstraps/LoadConfiguration.php
private function loadConfigFromFiles()
    {
        /** @var \Core\Services\Contracts\Config $config */
        $config = DI::getInstance()->get('config');

        foreach (scandir($this->configPath) as $file) {
            if (is_file($this->configPath . DIRECTORY_SEPARATOR . $file) && $file[0] != '.') {
                /** @noinspection PhpIncludeInspection */
                $config->set(basename($file, '.php'), require $this->configPath . DIRECTORY_SEPARATOR . $file);
            }
        }

        return $config;
    }
private function loadConfigFromFiles()
    {
        /** @var \Core\Services\Contracts\Config $config */
        $config = DI::getInstance()->get('config');

        foreach (scandir($this->configPath) as $file) {
            if (is_file($this->configPath . DIRECTORY_SEPARATOR . $file) && $file[0] != '.') {
                /** @noinspection PhpIncludeInspection */
                $config->set(basename($file, '.php'), require $this->configPath . DIRECTORY_SEPARATOR . $file);
            }
        }

        return $config;
    }
private function loadConfigFromFiles ( ) { /** @var \Core\Services\Contracts\Config $config */ $ config = DI :: getInstance ( ) -> get ( 'config' ) ; foreach ( scandir ( $ this -> configPath ) as $ file ) { if ( is_file ( $ this -> configPath . DIRECTORY_SEPARATOR . $ file ) && $ file [ 0 ] != '.' ) { /** @noinspection PhpIncludeInspection */ $ config -> set ( basename ( $ file , '.php' ) , require $ this -> configPath . DIRECTORY_SEPARATOR . $ file ) ; } } return $ config ; }
Load the configuration files.

@return \Core\Services\Contracts\Config
Load the configuration files .