urlGenerator = $urlGenerator; $this->userManager = $userManager; $this->userSession = $userSession; $this->signer = $signer; $this->eventWrapperRequest = $eventWrapperRequest; $this->configService = $configService; $this->miscService = $miscService; } /** * @return array */ public function getGlobalScaleInstances(): array { $mockup = $this->configService->getGSSMockup(); if (!empty($mockup)) { return $mockup; } try { $lookup = $this->configService->getGSLookup(); $request = new NCRequest(ConfigService::GS_LOOKUP_INSTANCES, Request::TYPE_POST); $this->configService->configureRequest($request); $request->basedOnUrl($lookup); $request->addData('authKey', $this->configService->getGSInfo(ConfigService::GS_KEY)); try { return $this->retrieveJson($request); } catch (RequestNetworkException $e) { $this->e($e); } } catch (GSStatusException $e) { } return []; } }