public function __construct(Factory $view, TranslatorInterface $translator) { $this->view = $view; $this->translator = $translator; }