public function setup()
    {
        $this->di->set('config', $this->config);

        $this->initEnvironment($this->config);
        $this->initErrorHandler($this->config);
        $this->initLoader($this->config);
        $this->initModules($this->config);
        $this->initRoutes($this->config);
        $this->initServices($this->config);
        $this->initDispatcher();

        $this->application->setDI($this->di);
        DI::setDefault($this->di);

        return $this;
    }
public function setup()
    {
        $this->di->set('config', $this->config);

        $this->initEnvironment($this->config);
        $this->initErrorHandler($this->config);
        $this->initLoader($this->config);
        $this->initModules($this->config);
        $this->initRoutes($this->config);
        $this->initServices($this->config);
        $this->initDispatcher();

        $this->application->setDI($this->di);
        DI::setDefault($this->di);

        return $this;
    }
public function setup ( ) { $ this -> di -> set ( 'config' , $ this -> config ) ; $ this -> initEnvironment ( $ this -> config ) ; $ this -> initErrorHandler ( $ this -> config ) ; $ this -> initLoader ( $ this -> config ) ; $ this -> initModules ( $ this -> config ) ; $ this -> initRoutes ( $ this -> config ) ; $ this -> initServices ( $ this -> config ) ; $ this -> initDispatcher ( ) ; $ this -> application -> setDI ( $ this -> di ) ; DI :: setDefault ( $ this -> di ) ; return $ this ; }
Executes all bootstrap initialization methods
This method can be overloaded to load own initialization method.
@return mixed
Executes all bootstrap initialization methods This method can be overloaded to load own initialization method .