vacationInfoCollectorService = $vacationInfoCollectorService; $this->trInfoCollectorService = $trInfoCollectorService; $this->jcatInfoCollectorService = $jcatInfoCollectorService; $this->labInfoCollectorService = $labInfoCollectorService; $this->jiraCollectorService = $jiraCollectorService; } /** * @param ServerRequestInterface $request * @param DelegateInterface $delegate * @return JsonCorsResponse * @todo lab temperature data */ public function process(ServerRequestInterface $request, DelegateInterface $delegate) { return new JsonCorsResponse([ 'animGifs' => [], 'praGoals' => $this->trInfoCollectorService->getPraGoals(), 'trProgress' => $this->trInfoCollectorService->getProgressInfo(), 'trFlow' => $this->jcatInfoCollectorService->getTrFlow(), 'expedites' => $this->jiraCollectorService->getExpedites(), 'vacationInfo' => $this->vacationInfoCollectorService->isVacationSoon(), 'labTemperature' => $this->labInfoCollectorService->getLabTemperatureData(), ]); } }