/** * Set the Translator implementation. * * @param \Symfony\Component\Translation\TranslatorInterface $translator * @return void */ public function setTranslator(TranslatorInterface $translator) { $this->translator = $translator; $this->validator->setTranslator($this->translator); }