request = new Request(); $this->response = new Response(); $this->router = new Router($this->request); $this->view = new View(); $this->session = new Session(); } public function run(): void { try{ echo $this->router->resolve(); }catch(ForbiddenAccessException $e){ }catch(PageNotFoundException $e){ } } }