diff --git a/Classes/Updates/ContainerMigrateSorting.php b/Classes/Updates/ContainerMigrateSorting.php deleted file mode 100644 index 1477fa2c..00000000 --- a/Classes/Updates/ContainerMigrateSorting.php +++ /dev/null @@ -1,95 +0,0 @@ -output = $output; - } - - public function getIdentifier(): string - { - return self::IDENTIFIER; - } - - public function getTitle(): string - { - return 'EXT:container: Migrate "container" sorting'; - } - - public function getDescription(): string - { - return 'change sorting of container children (must be run multiple times for nested containers)'; - } - - public function updateNecessary(): bool - { - $errors = $this->sorting->run(true); - return !empty($errors); - } - - public function executeUpdate(): bool - { - if (Environment::isCli() === false) { - $requestFactory = GeneralUtility::makeInstance(ServerRequestFactory::class); - $request = $requestFactory::fromGlobals(); - $request = $request->withAttribute('normalizedParams', NormalizedParams::createFromRequest($request)); - Bootstrap::initializeBackendUser(BackendUserAuthentication::class, $request); - if ($GLOBALS['BE_USER'] === null || $GLOBALS['BE_USER']->user === null) { - $this->output->writeln( - 'EXT:container Migrations need a valid Backend User, Login to the Backend to execute Wizard, or use CLI' - ); - return false; - } - Bootstrap::initializeBackendAuthentication(); - $GLOBALS['LANG'] = GeneralUtility::makeInstance(LanguageServiceFactory::class)->createFromUserPreferences($GLOBALS['BE_USER']); - } - $this->sorting->run(false); - return true; - } - - public function getPrerequisites(): array - { - return [ - DatabaseUpdatedPrerequisite::class, - ]; - } -}