linawolf/list-type-migration
最新稳定版本:1.0.0
Composer 安装命令:
composer require linawolf/list-type-migration
包简介
List type to CType migration, backward compatible for TYPO3 v11 and v12
README 文档
README
To offer a migration path for an extension that supports both TYPO3 v12 and v13,
extend Linawolf\ListTypeMigration\Upgrades\AbstractListTypeToCTypeUpdate:
<?php
declare(strict_types=1);
namespace MyVendor\MyExtension\Upgrades;
use Linawolf\ListTypeMigration\Upgrades\AbstractListTypeToCTypeUpdate;
use TYPO3\CMS\Install\Attribute\UpgradeWizard;
#[UpgradeWizard('myExtensionPluginListTypeToCTypeUpdate')]
final class PluginListTypeToCTypeUpdate extends AbstractListTypeToCTypeUpdate
{
protected function getListTypeToCTypeMapping(): array
{
return [
'my_extension_pi1' => 'my_extension_pi1',
'my_extension_pi2' => 'my_extension_newpluginname',
];
}
public function getTitle(): string
{
return 'Migrates my_extension plugins';
}
public function getDescription(): string
{
return 'Migrates my_extension_pi1, my_extension_pi2 from list_type to CType. ';
}
}
If you also have to be compatible with TYPO3 v11, register the Upgrade Wizard manually: https://docs.typo3.org/m/typo3/reference-coreapi/11.5/en-us/ExtensionArchitecture/HowTo/UpdateExtensions/UpdateWizards/Creation.html#upgrade-wizards-register
统计信息
- 总下载量: 10.64k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 0
- 依赖项目数: 5
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0-or-later
- 更新时间: 2024-10-24