Skip to content

Commit

Permalink
[DOCS] Generate documentation
Browse files Browse the repository at this point in the history
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
simonschaufi authored and github-actions[bot] committed Dec 22, 2023
1 parent 826610d commit 28a1d68
Showing 1 changed file with 69 additions and 21 deletions.
90 changes: 69 additions & 21 deletions docs/all_rectors_overview.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 286 Rules Overview
# 287 Rules Overview

## AbstractMessageGetSeverityFluidRector

Expand Down Expand Up @@ -781,10 +781,15 @@ use Rector\Config\RectorConfig;
use Ssch\TYPO3Rector\Rector\General\ExtEmConfRector;

return static function (RectorConfig $rectorConfig): void {
$rectorConfig->ruleWithConfiguration(ExtEmConfRector::class, [
ExtEmConfRector::ADDITIONAL_VALUES_TO_BE_REMOVED => [
'createDirs',
'uploadfolder',
$containerConfigurator->extension('rectorConfig', [
[
'class' => ExtEmConfRector::class,
'configuration' => [
'additional_values_to_be_removed' => [
'createDirs',
'uploadfolder',
],
],
],
]);
};
Expand Down Expand Up @@ -889,9 +894,14 @@ use Rector\Config\RectorConfig;
use Ssch\TYPO3Rector\Rector\v11\v0\ExtbaseControllerActionsMustReturnResponseInterfaceRector;

return static function (RectorConfig $rectorConfig): void {
$rectorConfig->ruleWithConfiguration(ExtbaseControllerActionsMustReturnResponseInterfaceRector::class, [
ExtbaseControllerActionsMustReturnResponseInterfaceRector::REDIRECT_METHODS => [
'myRedirectMethod',
$containerConfigurator->extension('rectorConfig', [
[
'class' => ExtbaseControllerActionsMustReturnResponseInterfaceRector::class,
'configuration' => [
'redirect_methods' => [
'myRedirectMethod',
],
],
],
]);
};
Expand Down Expand Up @@ -933,8 +943,13 @@ use Rector\Config\RectorConfig;
use Ssch\TYPO3Rector\FileProcessor\TypoScript\Rector\v10\v0\ExtbasePersistenceTypoScriptRector;

return static function (RectorConfig $rectorConfig): void {
$rectorConfig->ruleWithConfiguration(ExtbasePersistenceTypoScriptRector::class, [
ExtbasePersistenceTypoScriptRector::FILENAME => 'path/to/Configuration/Extbase/Persistence/Classes.php',
$containerConfigurator->extension('rectorConfig', [
[
'class' => ExtbasePersistenceTypoScriptRector::class,
'configuration' => [
'filename' => 'path/to/Configuration/Extbase/Persistence/Classes.php',
],
],
]);
};
```
Expand Down Expand Up @@ -1477,9 +1492,14 @@ use Rector\Config\RectorConfig;
use Ssch\TYPO3Rector\Rector\General\MethodGetInstanceToMakeInstanceCallRector;

return static function (RectorConfig $rectorConfig): void {
$rectorConfig->ruleWithConfiguration(MethodGetInstanceToMakeInstanceCallRector::class, [
MethodGetInstanceToMakeInstanceCallRector::CLASSES_GET_INSTANCE_TO_MAKE_INSTANCE => [
'SomeClass',
$containerConfigurator->extension('rectorConfig', [
[
'class' => MethodGetInstanceToMakeInstanceCallRector::class,
'configuration' => [
'classes-get-instance-to-make-instance' => [
'SomeClass',
],
],
],
]);
};
Expand Down Expand Up @@ -2066,6 +2086,19 @@ Migrates existing input TCA with eval email to new type

<br>

## MigrateXhtmlDoctypeRector

Migrate typoscript xhtmlDoctype to doctype

- class: [`Ssch\TYPO3Rector\Rector\v12\v4\typoscript\MigrateXhtmlDoctypeRector`](../src/Rector/v12/v4/typoscript/MigrateXhtmlDoctypeRector.php)

```diff
-config.xhtmlDoctype = 1
+config.doctype = 1
```

<br>

## MoveApplicationContextToEnvironmentApiRector

Use Environment API to fetch application context
Expand Down Expand Up @@ -4085,8 +4118,13 @@ use Rector\Config\RectorConfig;
use Ssch\TYPO3Rector\Rector\Migrations\RenameClassMapAliasRector;

return static function (RectorConfig $rectorConfig): void {
$rectorConfig->ruleWithConfiguration(RenameClassMapAliasRector::class, [
RenameClassMapAliasRector::CLASS_ALIAS_MAPS => 'config/Migrations/Code/ClassAliasMap.php',
$containerConfigurator->extension('rectorConfig', [
[
'class' => RenameClassMapAliasRector::class,
'configuration' => [
'class_alias_maps' => 'config/Migrations/Code/ClassAliasMap.php',
],
],
]);
};
```
Expand Down Expand Up @@ -4235,9 +4273,14 @@ use Ssch\TYPO3Rector\Rector\v9\v0\ReplaceAnnotationRector;
use TYPO3\CMS\Extbase\Annotation\ORM\Transient;

return static function (RectorConfig $rectorConfig): void {
$rectorConfig->ruleWithConfiguration(ReplaceAnnotationRector::class, [
ReplaceAnnotationRector::OLD_TO_NEW_ANNOTATIONS => [
'transient' => Transient::class,
$containerConfigurator->extension('rectorConfig', [
[
'class' => ReplaceAnnotationRector::class,
'configuration' => [
'old_to_new_annotations' => [
'transient' => Transient::class,
],
],
],
]);
};
Expand Down Expand Up @@ -4878,9 +4921,14 @@ use Rector\Config\RectorConfig;
use Ssch\TYPO3Rector\Rector\v8\v4\SubstituteOldWizardIconsRector;

return static function (RectorConfig $rectorConfig): void {
$rectorConfig->ruleWithConfiguration(SubstituteOldWizardIconsRector::class, [
SubstituteOldWizardIconsRector::OLD_TO_NEW_FILE_LOCATIONS => [
'add.gif' => 'EXT:backend/Resources/Public/Images/FormFieldWizard/wizard_add.gif',
$containerConfigurator->extension('rectorConfig', [
[
'class' => SubstituteOldWizardIconsRector::class,
'configuration' => [
'old_to_new_file_locations' => [
'add.gif' => 'EXT:backend/Resources/Public/Images/FormFieldWizard/wizard_add.gif',
],
],
],
]);
};
Expand Down

0 comments on commit 28a1d68

Please sign in to comment.