/** * Get Request * * @return Request */ public function getRequest() { if (empty($this->request)) { $this->request = new Request(); $this->request->setAllowCustomMethods(false); } return $this->request; }