config = $config; $this->vacationInfoCollectorService = $vacationInfoCollectorService; $this->trInfoCollectorService = $trInfoCollectorService; $this->jcatInfoCollectorService = $jcatInfoCollectorService; $this->labInfoCollectorService = $labInfoCollectorService; $this->jiraCollectorService = $jiraCollectorService; } /** * @param ServerRequestInterface $request * @param DelegateInterface $delegate * @return JsonCorsResponse */ public function process(ServerRequestInterface $request, DelegateInterface $delegate) { return new JsonCorsResponse([ 'cameraUrls' => $this->config->get('url.eurestCameras')->toArray(), 'animGifs' => [], 'praGoals' => $this->trInfoCollectorService->getPraGoals(), 'trProgressInfo' => $this->trInfoCollectorService->getProgressInfo(), 'trFlowErrors' => $this->jcatInfoCollectorService->getTrFlowErrors(), 'expedites' => $this->jiraCollectorService->getExpedites(), 'isVacationSoon' => $this->vacationInfoCollectorService->isVacationSoon(), 'labTemperature' => $this->labInfoCollectorService->getLabTemperatureData(), ]); } }