2 namespace TYPO3\CMS\Install\Controller\Action\Ajax;
30 $statusUtility = $this->objectManager->get(\TYPO3\CMS\Install\Status\StatusUtility::class);
33 $environmentStatus = $this->objectManager->get(\TYPO3\CMS\Install\SystemEnvironment\Check::class)->getStatus();
34 $environmentErrors = $statusUtility->filterBySeverity($environmentStatus,
'error');
37 $databaseStatus = $this->objectManager->get(\TYPO3\CMS\Install\SystemEnvironment\DatabaseCheck::class)->getStatus();
38 $databaseErrors = $statusUtility->filterBySeverity($databaseStatus,
'error');
40 return count($environmentErrors) + count($databaseErrors);