view = $view; $this->authorizer = $authorizer; $this->header = $header; } public function run(Url $url) { if($this->authorizer->isLoggedIn()) { $this->header->location("/dashboard"); } $viewData = array( "url" => $url, "isLoggedIn" => false, "title" => "Browser Game" ); return $this->view->render("homeView.php", $viewData); } }