public static function setTranslator(TranslatorInterface $translator) { self::$translator = $translator; }