cache = $cache; $this->config = $config; $this->vacationInfoCollectorService = $vacationInfoCollectorService; $this->trInfoCollectorService = $trInfoCollectorService; $this->jcatInfoCollectorService = $jcatInfoCollectorService; $this->labInfoCollectorService = $labInfoCollectorService; $this->jiraCollectorService = $jiraCollectorService; } /** * @param bool $forceReload * @return array */ public function getTspInfo(bool $forceReload = false): array { $tspInfo = $this->cache->getItem(self::CACHE_KEY); if($forceReload || null == $tspInfo) { $tspInfo = [ '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(), ]; $this->cache->setItem(self::CACHE_KEY, serialize($tspInfo)); } else { $tspInfo = unserialize($tspInfo); } return $tspInfo; } }