-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[TASK] Add list_type to CType Upgrade Wizards
Releases: main
- Loading branch information
Showing
2 changed files
with
61 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace T3docs\Examples\Upgrades; | ||
|
||
use TYPO3\CMS\Install\Attribute\UpgradeWizard; | ||
use TYPO3\CMS\Install\Updates\AbstractListTypeToCTypeUpdate; | ||
|
||
#[UpgradeWizard('example_extbasePluginListTypeToCTypeUpdate')] | ||
final class ExtbasePluginListTypeToCTypeUpdate extends AbstractListTypeToCTypeUpdate | ||
{ | ||
protected function getListTypeToCTypeMapping(): array | ||
{ | ||
return [ | ||
'examples_error' => 'examples_error', | ||
'examples_htmlparser' => 'examples_htmlparser', | ||
'examples_falexamples' => 'examples_falexamples', | ||
]; | ||
} | ||
|
||
public function getTitle(): string | ||
{ | ||
return 'Migrate Example Extbase plugins'; | ||
} | ||
|
||
public function getDescription(): string | ||
{ | ||
return 'Migrate Example Extbase plugins from deprecated registration via "list-type" to "CType"'; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace T3docs\Examples\Upgrades; | ||
|
||
use TYPO3\CMS\Install\Attribute\UpgradeWizard; | ||
use TYPO3\CMS\Install\Updates\AbstractListTypeToCTypeUpdate; | ||
|
||
#[UpgradeWizard('example_haikuPluginListTypeToCTypeUpdate')] | ||
final class HaikuPluginListTypeToCTypeUpdate extends AbstractListTypeToCTypeUpdate | ||
{ | ||
protected function getListTypeToCTypeMapping(): array | ||
{ | ||
return [ | ||
'examples_haiku_list' => 'examples_haiku_list', | ||
'examples_haiku_detail' => 'examples_haiku_detail', | ||
]; | ||
} | ||
|
||
public function getTitle(): string | ||
{ | ||
return 'Migrate Example Haiku plugins'; | ||
} | ||
|
||
public function getDescription(): string | ||
{ | ||
return 'Migrate Example Haiku plugins from deprecated registration via "list-type" to "CType"'; | ||
} | ||
} |