/** * Get the WebRequest object * @return WebRequest */ public function getRequest() { if ($this->request === null) { $this->request = WebRequest::newFromContext($this); } return $this->request; }