public function __construct(View $view) { $this->view = $view; parent::__construct(sprintf("No view template was set to render the view with the '%s' view type. Check your view configuration.", $view->getViewType())); }