public function actionGetAllApplications() { $response = []; $apps = $this->applicationManager->getAllApplications(); foreach ($apps as $app) { /** @var Application $app */ $response[] = ['name' => $app->getName(), 'url' => $app->getScudURL()]; } $this->sendResponse(new JsonResponse($response)); }