code: public function setRequest(Request $request)
      {
          $this->request = $request;
          $this->app = null;
          $this->vhost = null;
          $this->route = null;
          $this->setVariable('request', $request);
          return $this;
      }
docs: Set the request being handled
  @param Request $request The request instance
  @return Dispatcher Provides fluent interface