[BUGFIX] Use class name to mark upgrade wizards done
[Packages/TYPO3.CMS.git] / typo3 / sysext / install / Classes / Command / UpgradeWizardListCommand.php
index c53d8db..093a2d4 100644 (file)
@@ -23,7 +23,6 @@ use Symfony\Component\Console\Output\OutputInterface;
 use Symfony\Component\Console\Style\SymfonyStyle;
 use TYPO3\CMS\Core\Authentication\CommandLineUserAuthentication;
 use TYPO3\CMS\Core\Core\Bootstrap;
-use TYPO3\CMS\Core\Registry;
 use TYPO3\CMS\Core\Utility\GeneralUtility;
 use TYPO3\CMS\Install\Service\UpgradeWizardsService;
 use TYPO3\CMS\Install\Updates\ChattyInterface;
@@ -132,14 +131,8 @@ class UpgradeWizardListCommand extends Command
      */
     protected function getWizard(string $className, string $identifier, $all = false): ?UpgradeWizardInterface
     {
-        $registry = GeneralUtility::makeInstance(Registry::class);
-        $markedDoneInRegistry = $registry->get(
-            'installUpdate',
-            $identifier,
-            false
-        );
         // already done
-        if (!$all && $markedDoneInRegistry) {
+        if (!$all && $this->upgradeWizardsService->isWizardDone($identifier)) {
             return null;
         }