/** * {@inheritdoc} */ public function check($input) { $this->checkKeys($input); return parent::check($input); }
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; } }