Exemplo n.º 1
0
 public function getErrorResponse()
 {
     $response = parent::getErrorResponse();
     if (!empty($this->errors)) {
         $response->withErrors($this->errors);
     }
     return $response;
 }
Exemplo n.º 2
0
 public function __construct($message)
 {
     parent::__construct($message);
     $this->redirect = null;
     $this->context = array();
 }