diff --git a/Classes/Updates/PluginListTypeToCTypeUpdate.php b/Classes/Updates/PluginListTypeToCTypeUpdate.php index ab45bf63..8e3ce307 100644 --- a/Classes/Updates/PluginListTypeToCTypeUpdate.php +++ b/Classes/Updates/PluginListTypeToCTypeUpdate.php @@ -4,8 +4,21 @@ namespace HDNET\Calendarize\Updates; -use TYPO3\CMS\Core\Upgrades\AbstractListTypeToCTypeUpdate; +// Use the EXT:install namespace to remain compatible with both v13 and v14 +// @todo Use v14 namespaces for UpgradeWizard and AbstractListTypeToCTypeUpdate when support for v13 is dropped +// v14 +//use TYPO3\CMS\Core\Attribute\UpgradeWizard; +// v13 path, works for v13 and v14 +use TYPO3\CMS\Install\Attribute\UpgradeWizard; + +// v14 +//use TYPO3\CMS\Core\Upgrades\AbstractListTypeToCTypeUpdate; +// v13 path, works for v13 and v14 +use TYPO3\CMS\Install\Updates\AbstractListTypeToCTypeUpdate; + + +#[UpgradeWizard('calendarize_pluginListTypeToCTypeUpdate')] class PluginListTypeToCTypeUpdate extends AbstractListTypeToCTypeUpdate { protected function getListTypeToCTypeMapping(): array