2 namespace TYPO3\CMS\Install\Controller\Action\Step;
36 $folderStructureFactory = $this->objectManager->get(\TYPO3\CMS\Install\FolderStructure\DefaultFactory::class);
38 $structureFacade = $folderStructureFactory->getStructure();
39 $structureFixMessages = $structureFacade->fix();
41 $statusUtility = $this->objectManager->get(\TYPO3\CMS\Install\Status\StatusUtility::class);
42 $errorsFromStructure = $statusUtility->filterBySeverity($structureFixMessages,
'error');
44 if (@is_dir(PATH_typo3conf)) {
46 $configurationManager = $this->objectManager->get(\TYPO3\CMS\Core\Configuration\ConfigurationManager::class);
47 $configurationManager->createLocalConfigurationFromFactoryConfiguration();
50 if (!file_exists(PATH_typo3conf .
'PackageStates.php')) {
52 $packageManager = \TYPO3\CMS\Core\Core\Bootstrap::getInstance()->getEarlyInstance(\TYPO3\CMS\Core\Package\PackageManager::class);
53 $packages = $packageManager->getAvailablePackages();
54 foreach ($packages as $package) {
56 if ($package instanceof \TYPO3\CMS\Core\Package\PackageInterface
57 && $package->isPartOfFactoryDefault()
59 $packageManager->activatePackage($package->getPackageKey());
62 $packageManager->forceSortAndSavePackageStates();
67 $installToolService = $this->objectManager->get(\TYPO3\CMS\Install\Service\EnableFileService::class);
68 $installToolService->removeFirstInstallFile();
69 $installToolService->createInstallToolEnableFile();
72 return $errorsFromStructure;
82 if (@is_file(PATH_typo3conf .
'LocalConfiguration.php')) {
97 $statusCheck = $this->objectManager->get(\TYPO3\CMS\Install\SystemEnvironment\Check::class);
98 $statusObjects = $statusCheck->getStatus();
100 $statusUtility = $this->objectManager->get(\TYPO3\CMS\Install\Status\StatusUtility::class);
101 $environmentStatus = $statusUtility->sortBySeverity($statusObjects);
102 $alerts = $statusUtility->filterBySeverity($statusObjects,
'alert');
103 $this->view->assign(
'alerts', $alerts);
104 $this->view->assign(
'environmentStatus', $environmentStatus);
107 $folderStructureFactory = $this->objectManager->get(\TYPO3\CMS\Install\FolderStructure\DefaultFactory::class);
109 $structureFacade = $folderStructureFactory->getStructure();
110 $structureMessages = $structureFacade->getStatus();
112 $structureErrors = $statusUtility->filterBySeverity($structureMessages,
'error');
113 $this->view->assign(
'structureErrors', $structureErrors);
115 if (!empty($environmentStatus[
'error']) || !empty($environmentStatus[
'warning']) || !empty($structureErrors)) {
116 $this->view->assign(
'errorsOrWarningsFromStatus',
true);
120 return $this->view->render(!empty($alerts));