2 namespace TYPO3\CMS\Install\Controller\Action\Tool;
17 use TYPO3\CMS\Install\Controller\Action;
32 $folderStructureFactory = $this->objectManager->get(\TYPO3\CMS\Install\
FolderStructure\DefaultFactory::class);
34 $structureFacade = $folderStructureFactory->getStructure();
36 $fixedStatusObjects = array();
37 if (isset($this->postValues[
'set'][
'fix'])) {
38 $fixedStatusObjects = $structureFacade->fix();
41 $statusObjects = $structureFacade->getStatus();
43 $statusUtility = $this->objectManager->get(\TYPO3\CMS\Install\Status\StatusUtility::class);
45 $errorStatus = array_merge(
46 $statusUtility->filterBySeverity($statusObjects,
'error'),
47 $statusUtility->filterBySeverity($statusObjects,
'warning')
49 $okStatus = array_merge(
50 $statusUtility->filterBySeverity($statusObjects,
'notice'),
51 $statusUtility->filterBySeverity($statusObjects,
'information'),
52 $statusUtility->filterBySeverity($statusObjects,
'ok')
56 $permissionCheck = $this->objectManager->get(\TYPO3\CMS\Install\
FolderStructure\DefaultPermissionsCheck::class);
57 $filePermissionStatus = $permissionCheck->getMaskStatus(
'fileCreateMask');
58 $directoryPermissionStatus = $permissionCheck->getMaskStatus(
'folderCreateMask');
61 ->assign(
'filePermissionStatus', $filePermissionStatus)
62 ->assign(
'directoryPermissionStatus', $directoryPermissionStatus)
63 ->assign(
'fixedStatus', $fixedStatusObjects)
64 ->assign(
'errorStatus', $errorStatus)
65 ->assign(
'okStatus', $okStatus);
67 return $this->view->render();