Skip to content

Commit

Permalink
[TASK] Use core abstract class for list_type to CType migration
Browse files Browse the repository at this point in the history
Closes #91
  • Loading branch information
derhansen committed Oct 20, 2024
1 parent c57574a commit a52e104
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 216 deletions.
107 changes: 0 additions & 107 deletions Classes/Updates/PluginPermissionUpdater.php

This file was deleted.

29 changes: 29 additions & 0 deletions Classes/Updates/PluginToContentElementUpdater.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?php

declare(strict_types=1);

namespace Derhansen\FeChangePwd\Updates;

use TYPO3\CMS\Install\Attribute\UpgradeWizard;
use TYPO3\CMS\Install\Updates\AbstractListTypeToCTypeUpdate;

#[UpgradeWizard('feChangePwdPluginToContentElementUpdate')]
class PluginToContentElementUpdater extends AbstractListTypeToCTypeUpdate
{
protected function getListTypeToCTypeMapping(): array
{
return [
'fechangepwd_pi1' => 'fechangepwd_pi1',
];
}

public function getTitle(): string
{
return 'ext:fe_change_pwd: Migrate plugins to content elements';
}

public function getDescription(): string
{
return 'Migrates existing plugin records and backend user permissions used by ext:fe_change_pwd.';
}
}
109 changes: 0 additions & 109 deletions Classes/Updates/PluginToContentTypeUpdater.php

This file was deleted.

0 comments on commit a52e104

Please # to comment.