statusService->getSystemStatus($request); $this->statusService->collectAndStoreSystemStatus($request); // Apply sorting to collection and the providers $statusCollection = $this->statusService->sortStatusProviders($statusCollection); foreach ($statusCollection as &$statuses) { $statuses = $this->statusService->sortStatuses($statuses); } unset($statuses); $languageService = $this->getLanguageService(); $view = $this->moduleTemplateFactory->create($request); $view->setLayout(ModuleLayout::NORMAL); $view->setTitle( $languageService->translate('title', 'reports.modules.overview'), $languageService->translate('title', 'reports.modules.status') ); $view->makeDocHeaderModuleMenu(); $view->getDocHeaderComponent()->setShortcutContext( 'system_reports_status', $languageService->translate('title', 'reports.modules.status') ); return $view->assignMultiple([ 'statusCollection' => $statusCollection, 'severityIconMapping' => [ ContextualFeedbackSeverity::NOTICE->value => 'actions-info', ContextualFeedbackSeverity::INFO->value => 'actions-info', ContextualFeedbackSeverity::OK->value => 'actions-check', ContextualFeedbackSeverity::WARNING->value => 'actions-exclamation', ContextualFeedbackSeverity::ERROR->value => 'actions-exclamation', ], ])->renderResponse('StatusReport'); } private function getLanguageService(): LanguageService { return $GLOBALS['LANG']; } }