public function initializeConfigure()
    {
        $config = $this->container->singleton('kernel.config');

        $config->setVariable([
            'root.path' => $this->getRootPath(),
            'env'       => $this->getEnvironment(),
            'debug'     => $this->isDebug(),
            'version'   => AppKernel::VERSION,
        ]);

        $this->registerConfigurationVariable($config);

        if ($this->isDebug()) {
            $this->registerConfiguration($config);
            $debug = $this->getContainer()->singleton('kernel.debug');
            $debug->addConfig($debug->getBar(), $config);
            unset($debug);
        } else {
            $config->load($this->getRootPath() . '/config.cache');
        }
    }
public function initializeConfigure()
    {
        $config = $this->container->singleton('kernel.config');

        $config->setVariable([
            'root.path' => $this->getRootPath(),
            'env'       => $this->getEnvironment(),
            'debug'     => $this->isDebug(),
            'version'   => AppKernel::VERSION,
        ]);

        $this->registerConfigurationVariable($config);

        if ($this->isDebug()) {
            $this->registerConfiguration($config);
            $debug = $this->getContainer()->singleton('kernel.debug');
            $debug->addConfig($debug->getBar(), $config);
            unset($debug);
        } else {
            $config->load($this->getRootPath() . '/config.cache');
        }
    }
public function initializeConfigure ( ) { $ config = $ this -> container -> singleton ( 'kernel.config' ) ; $ config -> setVariable ( [ 'root.path' => $ this -> getRootPath ( ) , 'env' => $ this -> getEnvironment ( ) , 'debug' => $ this -> isDebug ( ) , 'version' => AppKernel :: VERSION , ] ) ; $ this -> registerConfigurationVariable ( $ config ) ; if ( $ this -> isDebug ( ) ) { $ this -> registerConfiguration ( $ config ) ; $ debug = $ this -> getContainer ( ) -> singleton ( 'kernel.debug' ) ; $ debug -> addConfig ( $ debug -> getBar ( ) , $ config ) ; unset ( $ debug ) ; } else { $ config -> load ( $ this -> getRootPath ( ) . '/config.cache' ) ; } }
Initialize application configuration.

@return void
Initialize application configuration .