예제 #1
0
 /**
  * {@inheritdoc}
  */
 public function check($input)
 {
     $this->checkKeys($input);
     return parent::check($input);
 }
예제 #2
0
파일: Validator.php 프로젝트: Vaizard/Glued
 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;
     }
 }