2 namespace TYPO3\CMS\Install\Updates;
28 protected $title =
'Move access right parameters configuration to "SYS" section';
34 'BE/fileCreateMask' =>
'SYS/fileCreateMask',
35 'BE/folderCreateMask' =>
'SYS/folderCreateMask',
36 'BE/createGroup' =>
'SYS/createGroup',
47 $updateNeeded =
false;
53 foreach ($this->movedAccessRightConfigurationSettings as $oldPath => $newPath) {
55 $configurationManager->getLocalConfigurationValueByPath($oldPath);
58 }
catch (\RuntimeException $e) {
62 $description =
'Some access right parameters were moved from the "BE" to the "SYS" configuration section. ' .
63 'The update wizards moves the settings to the new configuration destination.';
75 public function performUpdate(array &$databaseQueries, &$customMessages)
79 foreach ($this->movedAccessRightConfigurationSettings as $oldPath => $newPath) {
81 $value = $configurationManager->getLocalConfigurationValueByPath($oldPath);
82 $configurationManager->setLocalConfigurationValueByPath($newPath, $value);
83 }
catch (\RuntimeException $e) {
86 $configurationManager->removeLocalConfigurationKeysByPath(array_keys($this->movedAccessRightConfigurationSettings));