getServiceLocator()->get(ApplicationService::SERVICE_ID); if ($applicationService->isInstallationFinished()) { $this->setSuccessJsonResponse([ 'success' => true ]); } else { throw new common_exception_Error('Installation is not finished'); } } catch (Throwable $exception) { $this->logError(sprintf('Error during health check: %s, ', $exception->getMessage())); $this->setErrorJsonResponse($exception->getMessage(), $exception->getCode()); } } }