Exemplo n.º 1
0
 private function overwriteExceptionParams(RuleException $exception)
 {
     $params = [];
     foreach ($exception->getParams() as $key => $value) {
         if (in_array($key, ['template', 'translator'])) {
             continue;
         }
         $params[$key] = $this->baseKey;
     }
     $exception->configure($this->comparedKey, $params);
     return $exception;
 }