/** * @param ViewInterface $view */ public function setView(ViewInterface $view) { $this->view = clone $view; $this->view->share('message', $this); }