-
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 (#298)
In order to implement the upgrade wizard we need to require typo3/cms-install. As that package is currently not compatible with composer we need to install composer indepenetly in its own folder. references TYPO3-Documentation/Changelog-To-Doc#1071 Releases: main
- Loading branch information
Showing
7 changed files
with
139 additions
and
12 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 |
---|---|---|
|
@@ -6,3 +6,5 @@ | |
*GENERATED* | ||
.ddev | ||
/.php-cs-fixer.cache | ||
/Build/rector/composer.json.testing | ||
/Build/rector/composer.lock |
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
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,20 @@ | ||
{ | ||
"name": "t3docs/blog-example-rector", | ||
"description": "Rector in its own package to avoid compability issues.", | ||
"license": "GPL-2.0-or-later", | ||
"type": "typo3-cms-extension", | ||
"authors": [ | ||
{ | ||
"name": "TYPO3 Documentation Team and contributors", | ||
"role": "Developer" | ||
} | ||
], | ||
"require": { | ||
"ssch/typo3-rector": "^2.3" | ||
}, | ||
"config": { | ||
"bin-dir": ".Build/bin", | ||
"sort-packages": true, | ||
"vendor-dir": ".Build/vendor" | ||
} | ||
} |
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,44 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
/* | ||
* This file is part of the TYPO3 CMS project. | ||
* | ||
* It is free software; you can redistribute it and/or modify it under | ||
* the terms of the GNU General Public License, either version 2 | ||
* of the License, or any later version. | ||
* | ||
* For the full copyright and license information, please read the | ||
* LICENSE.txt file that was distributed with this source code. | ||
* | ||
* The TYPO3 project - inspiring people to share! | ||
*/ | ||
|
||
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,43 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
/* | ||
* This file is part of the TYPO3 CMS project. | ||
* | ||
* It is free software; you can redistribute it and/or modify it under | ||
* the terms of the GNU General Public License, either version 2 | ||
* of the License, or any later version. | ||
* | ||
* For the full copyright and license information, please read the | ||
* LICENSE.txt file that was distributed with this source code. | ||
* | ||
* The TYPO3 project - inspiring people to share! | ||
*/ | ||
|
||
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"'; | ||
} | ||
} |
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
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