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