TYPO3 CMS  TYPO3_6-2
EnvironmentStatus.php
Go to the documentation of this file.
1 <?php
3 
21 
27  protected function executeAction() {
29  $statusUtility = $this->objectManager->get('TYPO3\\CMS\\Install\\Status\\StatusUtility');
30 
31  // Count of failed environment checks are displayed in the left navigation menu
32  $environmentStatus = $this->objectManager->get('TYPO3\\CMS\\Install\\SystemEnvironment\\Check')->getStatus();
33  $environmentErrors = $statusUtility->filterBySeverity($environmentStatus, 'error');
34  return count($environmentErrors);
35  }
36 }