redirectIfUnlogged(); $pageController = new Page(); $this->response = new \Views\Frontend(); $this->response->data = $pageController->getPageParams(); } public function getList(): array { $apiKey = $this->getCurrentOperatorApiKeyId(); return $apiKey ? (new Data())->getList($apiKey) : []; } public function getEventDetails(): array { $apiKey = $this->getCurrentOperatorApiKeyId(); return $apiKey ? (new Data())->getEventDetails($apiKey) : []; } }