src/Control/Controller.php
protected function beforeHandleRequest(HTTPRequest $request)
    {
        //Set up the internal dependencies (request, response)
        $this->setRequest($request);
        //Push the current controller to protect against weird session issues
        $this->pushCurrent();
        $this->setResponse(new HTTPResponse());
        //kick off the init functionality
        $this->doInit();
    }
protected function beforeHandleRequest(HTTPRequest $request)
    {
        //Set up the internal dependencies (request, response)
        $this->setRequest($request);
        //Push the current controller to protect against weird session issues
        $this->pushCurrent();
        $this->setResponse(new HTTPResponse());
        //kick off the init functionality
        $this->doInit();
    }
protected function beforeHandleRequest ( HTTPRequest $ request ) { //Set up the internal dependencies (request, response) $ this -> setRequest ( $ request ) ; //Push the current controller to protect against weird session issues $ this -> pushCurrent ( ) ; $ this -> setResponse ( new HTTPResponse ( ) ) ; //kick off the init functionality $ this -> doInit ( ) ; }
A bootstrap for the handleRequest method

@todo setDataModel and setRequest are redundantly called in parent::handleRequest() - sort this out

@param HTTPRequest $request
A bootstrap for the handleRequest method