Exemple #1
0
 /**
  * {@inheritdoc}
  */
 public function check($input)
 {
     $this->checkKeys($input);
     return parent::check($input);
 }
Exemple #2
0
 public function check($input)
 {
     try {
         return parent::check($input);
     } catch (ValidationException $exception) {
         if (count($this->getRules()) == 1 && $this->template) {
             $exception->setTemplate($this->template);
         }
         throw $exception;
     }
 }