public function init()
    {
        $this->config->set('http', [
            'request' => &$this->request,
            'response' => &$this->response,
        ]);

        Event::trigger('BeforeSystemInit', $this);

        if (!defined('IS_CONSOLE')) {
            $this->initHttpRequest();
        }

        Event::trigger('AfterSystemInit', $rtn);

        return $rtn;
    }
public function init()
    {
        $this->config->set('http', [
            'request' => &$this->request,
            'response' => &$this->response,
        ]);

        Event::trigger('BeforeSystemInit', $this);

        if (!defined('IS_CONSOLE')) {
            $this->initHttpRequest();
        }

        Event::trigger('AfterSystemInit', $rtn);

        return $rtn;
    }
public function init ( ) { $ this -> config -> set ( 'http' , [ 'request' => & $ this -> request , 'response' => & $ this -> response , ] ) ; Event :: trigger ( 'BeforeSystemInit' , $ this ) ; if ( ! defined ( 'IS_CONSOLE' ) ) { $ this -> initHttpRequest ( ) ; } Event :: trigger ( 'AfterSystemInit' , $ rtn ) ; return $ rtn ; }
Setup the application and register basic routes
Setup the application and register basic routes