protected function initConfig(): void
    {
        $loader = new ConfigLoader();
        $loader->setPath($this->getPath());
        $loader->setEnvironment($this->getEnvironment());
        $loader->load();

        $config = new \Bluz\Config\Config();
        $config->setFromArray($loader->getConfig());

        Config::setInstance($config);

        // setup configuration for current environment
        if ($debug = Config::get('debug')) {
            $this->debugFlag = (bool)$debug;
        }

        // initial php settings
        if ($ini = Config::get('php')) {
            foreach ($ini as $key => $value) {
                $result = ini_set($key, $value);
                Logger::info('app:init:php:' . $key . ':' . ($result ?: '---'));
            }
        }
    }
protected function initConfig(): void
    {
        $loader = new ConfigLoader();
        $loader->setPath($this->getPath());
        $loader->setEnvironment($this->getEnvironment());
        $loader->load();

        $config = new \Bluz\Config\Config();
        $config->setFromArray($loader->getConfig());

        Config::setInstance($config);

        // setup configuration for current environment
        if ($debug = Config::get('debug')) {
            $this->debugFlag = (bool)$debug;
        }

        // initial php settings
        if ($ini = Config::get('php')) {
            foreach ($ini as $key => $value) {
                $result = ini_set($key, $value);
                Logger::info('app:init:php:' . $key . ':' . ($result ?: '---'));
            }
        }
    }
protected function initConfig ( ) : void { $ loader = new ConfigLoader ( ) ; $ loader -> setPath ( $ this -> getPath ( ) ) ; $ loader -> setEnvironment ( $ this -> getEnvironment ( ) ) ; $ loader -> load ( ) ; $ config = new \ Bluz \ Config \ Config ( ) ; $ config -> setFromArray ( $ loader -> getConfig ( ) ) ; Config :: setInstance ( $ config ) ; // setup configuration for current environment if ( $ debug = Config :: get ( 'debug' ) ) { $ this -> debugFlag = ( bool ) $ debug ; } // initial php settings if ( $ ini = Config :: get ( 'php' ) ) { foreach ( $ ini as $ key => $ value ) { $ result = ini_set ( $ key , $ value ) ; Logger :: info ( 'app:init:php:' . $ key . ':' . ( $ result ? : '---' ) ) ; } } }
Initial Request instance

@return void
@throws \Bluz\Config\ConfigException
@throws \ReflectionException
Initial Request instance