redirectIfUnlogged(); $pageController = new Page(); $this->response = new \Views\Frontend(); $this->response->data = $pageController->getPageParams(); } public function getDomainDetails(): array { $dataController = new Data(); $domainId = $this->f3->get('REQUEST.domainId'); $hasAccess = $dataController->checkIfOperatorHasAccess($domainId); if (!$hasAccess) { $this->f3->error(404); } return $dataController->getDomainDetails($domainId); } }