public function setRequest(Request $request)
    {
        $this->request = $request;
        $this->getContainer()->register('request', $request);
        return $this;
    }
public function setRequest(Request $request)
    {
        $this->request = $request;
        $this->getContainer()->register('request', $request);
        return $this;
    }
public function setRequest ( Request $ request ) { $ this -> request = $ request ; $ this -> getContainer ( ) -> register ( 'request' , $ request ) ; return $ this ; }
Sets a new request

@param Request $request

@return Application
Sets a new request