private function setRequest(Request $request = null)
    {
        $this->request = $request;
        $this->override = null;
    }
private function setRequest(Request $request = null)
    {
        $this->request = $request;
        $this->override = null;
    }
private function setRequest ( Request $ request = null ) { $ this -> request = $ request ; $ this -> override = null ; }
Set the current request and reset the current override.

@param Request|null $request
Set the current request and reset the current override .