Exemplo n.º 1
0
 /**
  * Get the request object
  *
  * @throws	\UnexpectedValueException	If the request doesn't implement the DispatcherRequestInterface
  * @return DispatcherRequest
  */
 public function getRequest()
 {
     if (!$this->_request instanceof DispatcherRequestInterface) {
         $this->_request = parent::getRequest();
         if (!$this->_request instanceof DispatcherRequestInterface) {
             throw new \UnexpectedValueException('Request: ' . get_class($this->_request) . ' does not implement DispatcherRequestInterface');
         }
     }
     return $this->_request;
 }