public function processRequest()
    {
        $this->signal->send($this, 'onProcessRequest');

        if (Console::isCli()) {
            $exitCode = $this->_runner->run($_SERVER['argv']);
            if (is_int($exitCode)) {
                $this->end($exitCode);
            }
        } else {
            $this->runController($this->parseRoute());
        }
    }
public function processRequest()
    {
        $this->signal->send($this, 'onProcessRequest');

        if (Console::isCli()) {
            $exitCode = $this->_runner->run($_SERVER['argv']);
            if (is_int($exitCode)) {
                $this->end($exitCode);
            }
        } else {
            $this->runController($this->parseRoute());
        }
    }
public function processRequest ( ) { $ this -> signal -> send ( $ this , 'onProcessRequest' ) ; if ( Console :: isCli ( ) ) { $ exitCode = $ this -> _runner -> run ( $ _SERVER [ 'argv' ] ) ; if ( is_int ( $ exitCode ) ) { $ this -> end ( $ exitCode ) ; } } else { $ this -> runController ( $ this -> parseRoute ( ) ) ; } }
Processes the current request.
It first resolves the request into controller and action,
and then creates the controller to perform the action.
Processes the current request . It first resolves the request into controller and action and then creates the controller to perform the action .