Skip to content

Commit

Permalink
[BUGFIX] Import the main config file in flexform sets
Browse files Browse the repository at this point in the history
  • Loading branch information
simonschaufi committed Oct 16, 2023
1 parent 666dcd9 commit fb5d5ac
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions config/v11/typo3-112.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@
use Ssch\TYPO3Rector\Rector\v11\v2\typo3\SubstituteEnvironmentServiceWithApplicationTypeRector;

return static function (RectorConfig $rectorConfig): void {
$rectorConfig->import(__DIR__ . '/../config.php');
$rectorConfig->rule(SubstituteEnvironmentServiceWithApplicationTypeRector::class);
};
1 change: 1 addition & 0 deletions config/v12/flexform-123.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@
use Ssch\TYPO3Rector\Rector\v12\v3\flexform\MigrateItemsToIndexedArrayKeysForFlexFormItemsRector;

return static function (RectorConfig $rectorConfig): void {
$rectorConfig->import(__DIR__ . '/../config.php');
$rectorConfig->rule(MigrateItemsToIndexedArrayKeysForFlexFormItemsRector::class);
};
10 changes: 10 additions & 0 deletions src/Set/Typo3SetList.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,16 @@ final class Typo3SetList
*/
public const TYPOSCRIPT_120 = __DIR__ . '/../../config/v12/typoscript-120.php';

/**
* @var string
*/
public const FLEXFORM_120 = __DIR__ . '/../../config/v12/flexform-120.php';

/**
* @var string
*/
public const FLEXFORM_123 = __DIR__ . '/../../config/v12/flexform-123.php';

/**
* @var string
*/
Expand Down
1 change: 1 addition & 0 deletions utils/generator/templates/config/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@
use Rector\Config\RectorConfig;

return static function (RectorConfig $rectorConfig): void {
$rectorConfig->import(__DIR__ . '/../config.php');
###FIRST_RULE###
};

0 comments on commit fb5d5ac

Please sign in to comment.