view = $view; $this->authorizer = $authorizer; $this->header = $header; } public function run(Url $url) { $isLoggedIn = $this->authorizer->isLoggedIn(); $viewData = array( "url" => $url, "isLoggedIn" => $isLoggedIn, "title" => "The Eye of Midas", "loginTarget" => "/dashboard" ); return $this->view->render("home.php", $viewData); } }