public function __construct(TranslatorInterface $translator = null) { $this->translator = $translator ?: new Translator(); }