From b5d0f21181563ebbc505f21f99007a96f830541f Mon Sep 17 00:00:00 2001 From: Achim Fritz Date: Mon, 13 Apr 2026 08:14:07 +0200 Subject: [PATCH] [TASK] rm Upgrade Wizards * they are not needed when updating from 3.x * if there are still problems with sorting we use the command --- Classes/Updates/ContainerMigrateSorting.php | 95 --------------------- 1 file changed, 95 deletions(-) delete mode 100644 Classes/Updates/ContainerMigrateSorting.php 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, - ]; - } -}