getUser()->isAdmin()) { throw new Forbidden(); } } public function actionRebuild($params, $data) { $result = $this->getContainer()->get('dataManager')->rebuild(); return $result; } public function actionClearCache($params, $data) { $result = $this->getContainer()->get('dataManager')->clearCache(); return $result; } public function actionJobs() { $scheduledJob = $this->getContainer()->get('scheduledJob'); return $scheduledJob->getAllNamesOnly(); } }