return GeneralUtility::makeInstance(Status::class, $languageService->sL('LLL:EXT:install/Resources/Private/Language/Report/locallang.xlf:status_fileSystem'), $value, $message, $severity);
}
+ /**
+ * Returns all incomplete update wizards.
+ *
+ * Fetches all wizards that are not marked "done" in the registry and filters out
+ * the ones that should not be rendered (= no upgrade required).
+ *
+ * @return array
+ */
+ protected function getIncompleteWizards(): array
+ {
+ $upgradeWizardsService = GeneralUtility::makeInstance(UpgradeWizardsService::class);
+ $incompleteWizards = $upgradeWizardsService->getUpgradeWizardsList();
+ $incompleteWizards = array_filter(
+ $incompleteWizards,
+ function ($wizard) {
+ return $wizard['shouldRenderWizard'];
+ }
+ );
+ return $incompleteWizards;
+ }
+
/**
* Checks if there are still updates to perform
*
/** @var \TYPO3\CMS\Backend\Routing\UriBuilder $uriBuilder */
$uriBuilder = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Routing\UriBuilder::class);
// check if there are update wizards left to perform
- $upgradeWizardsService = GeneralUtility::makeInstance(UpgradeWizardsService::class);
- $incompleteWizards = $upgradeWizardsService->getUpgradeWizardsList();
+ $incompleteWizards = $this->getIncompleteWizards();
if (count($incompleteWizards)) {
// At least one incomplete wizard was found
$value = $languageService->getLL('status_updateIncomplete');