public function initializeContainer()
    {
        $this->container = new Container([
            'kernel.database'   => Fdb::class,
            'kernel.config'     => Config::class,
            'kernel.storage'    => Storage::class,
            'kernel.routing'    => '\\Routes::getRouter',
            'kernel.debug'      => Debug::enable($this->isDebug()),
        ]);

        $this->container->set('kernel.container', $this->container);
        $this->container->set('kernel.dispatch', new Dispatcher($this->container));
        $this->container->set('kernel', $this);
        $this->registerService($this->container);

        $this->container->singleton('kernel.dispatch')->dispatch('handle.error');
    }
public function initializeContainer()
    {
        $this->container = new Container([
            'kernel.database'   => Fdb::class,
            'kernel.config'     => Config::class,
            'kernel.storage'    => Storage::class,
            'kernel.routing'    => '\\Routes::getRouter',
            'kernel.debug'      => Debug::enable($this->isDebug()),
        ]);

        $this->container->set('kernel.container', $this->container);
        $this->container->set('kernel.dispatch', new Dispatcher($this->container));
        $this->container->set('kernel', $this);
        $this->registerService($this->container);

        $this->container->singleton('kernel.dispatch')->dispatch('handle.error');
    }
public function initializeContainer ( ) { $ this -> container = new Container ( [ 'kernel.database' => Fdb :: class , 'kernel.config' => Config :: class , 'kernel.storage' => Storage :: class , 'kernel.routing' => '\\Routes::getRouter' , 'kernel.debug' => Debug :: enable ( $ this -> isDebug ( ) ) , ] ) ; $ this -> container -> set ( 'kernel.container' , $ this -> container ) ; $ this -> container -> set ( 'kernel.dispatch' , new Dispatcher ( $ this -> container ) ) ; $ this -> container -> set ( 'kernel' , $ this ) ; $ this -> registerService ( $ this -> container ) ; $ this -> container -> singleton ( 'kernel.dispatch' ) -> dispatch ( 'handle.error' ) ; }
Initialize application container.

@return void
Initialize application container .