Deprecation: #99586 - Registration of upgrade wizards via $GLOBALS
See forge#99586
Description
Registration of upgrade wizards via
$GLOBALS
,
usually placed in an extension's ext_
has been deprecated
in favor of the new service tag.
Additionally, the \TYPO3\
, which all upgrade wizards must
implement, does no longer require the get
method. TYPO3 does
not use this method anymore since an upgrade wizard's identifier is now
defined using the new service tag.
Impact
Upgrade wizards, registered via
$GLOBALS
will no longer be recognized in TYPO3 v13.
The definition of the get
method has no effect anymore.
Affected installations
All installations registering custom upgrade wizards using
$GLOBALS
.
All installations implementing the get
method in their
upgrade wizards.
Migration
Use the new service tag to register custom upgrade wizards and remove the
registration via
$GLOBALS
.
Before
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/install']['update']['myUpgradeWizard']
= \MyVendor\MyExtension\Updates\MyUpgradeWizard::class;
After
namespace MyVendor\MyExtension\Updates;
use TYPO3\CMS\Install\Attribute\UpgradeWizard;
use TYPO3\CMS\Install\Updates\UpgradeWizardInterface;
#[UpgradeWizard('myUpgradeWizard')]
class MyUpgradeWizard implements UpgradeWizardInterface
{
}
Drop any get
method in custom upgrade wizards.