예제 #1
0
 /**
  * {@inheritdoc}
  */
 public function process(ContextInterface $context)
 {
     /** @var Context $context */
     if (!$context->hasErrors()) {
         // no errors
         return;
     }
     $errors = $context->getErrors();
     $context->resetErrors();
     foreach ($errors as $error) {
         $error->trans($this->translator);
         $context->addError($error);
     }
 }