mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-18 05:48:21 +01:00
Updated Rector to commit d9eb8d219495168c8e99066fd4583408c76372f3
d9eb8d2194
[DX] Update to use Method Call from RectorConfig on rector configs (tests/ dir) (#2105)
This commit is contained in:
parent
2aa7002bee
commit
d58ebce473
@ -16,11 +16,11 @@ final class VersionResolver
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public const PACKAGE_VERSION = '61fd4d83082a78b49a7076daa75ecea7e3fd65f7';
|
||||
public const PACKAGE_VERSION = 'd9eb8d219495168c8e99066fd4583408c76372f3';
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public const RELEASE_DATE = '2022-04-20 09:54:57';
|
||||
public const RELEASE_DATE = '2022-04-20 17:08:51';
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
|
2
vendor/autoload.php
vendored
2
vendor/autoload.php
vendored
@ -9,4 +9,4 @@ if (PHP_VERSION_ID < 50600) {
|
||||
|
||||
require_once __DIR__ . '/composer/autoload_real.php';
|
||||
|
||||
return ComposerAutoloaderInit8f7a394c9833558affbdc5862d2dd947::getLoader();
|
||||
return ComposerAutoloaderInitfe37de9c9bb48d015cb11dbfa2054304::getLoader();
|
||||
|
14
vendor/composer/autoload_real.php
vendored
14
vendor/composer/autoload_real.php
vendored
@ -2,7 +2,7 @@
|
||||
|
||||
// autoload_real.php @generated by Composer
|
||||
|
||||
class ComposerAutoloaderInit8f7a394c9833558affbdc5862d2dd947
|
||||
class ComposerAutoloaderInitfe37de9c9bb48d015cb11dbfa2054304
|
||||
{
|
||||
private static $loader;
|
||||
|
||||
@ -22,19 +22,19 @@ class ComposerAutoloaderInit8f7a394c9833558affbdc5862d2dd947
|
||||
return self::$loader;
|
||||
}
|
||||
|
||||
spl_autoload_register(array('ComposerAutoloaderInit8f7a394c9833558affbdc5862d2dd947', 'loadClassLoader'), true, true);
|
||||
spl_autoload_register(array('ComposerAutoloaderInitfe37de9c9bb48d015cb11dbfa2054304', 'loadClassLoader'), true, true);
|
||||
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInit8f7a394c9833558affbdc5862d2dd947', 'loadClassLoader'));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInitfe37de9c9bb48d015cb11dbfa2054304', 'loadClassLoader'));
|
||||
|
||||
require __DIR__ . '/autoload_static.php';
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInit8f7a394c9833558affbdc5862d2dd947::getInitializer($loader));
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInitfe37de9c9bb48d015cb11dbfa2054304::getInitializer($loader));
|
||||
|
||||
$loader->setClassMapAuthoritative(true);
|
||||
$loader->register(true);
|
||||
|
||||
$includeFiles = \Composer\Autoload\ComposerStaticInit8f7a394c9833558affbdc5862d2dd947::$files;
|
||||
$includeFiles = \Composer\Autoload\ComposerStaticInitfe37de9c9bb48d015cb11dbfa2054304::$files;
|
||||
foreach ($includeFiles as $fileIdentifier => $file) {
|
||||
composerRequire8f7a394c9833558affbdc5862d2dd947($fileIdentifier, $file);
|
||||
composerRequirefe37de9c9bb48d015cb11dbfa2054304($fileIdentifier, $file);
|
||||
}
|
||||
|
||||
return $loader;
|
||||
@ -46,7 +46,7 @@ class ComposerAutoloaderInit8f7a394c9833558affbdc5862d2dd947
|
||||
* @param string $file
|
||||
* @return void
|
||||
*/
|
||||
function composerRequire8f7a394c9833558affbdc5862d2dd947($fileIdentifier, $file)
|
||||
function composerRequirefe37de9c9bb48d015cb11dbfa2054304($fileIdentifier, $file)
|
||||
{
|
||||
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
||||
$GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
|
||||
|
8
vendor/composer/autoload_static.php
vendored
8
vendor/composer/autoload_static.php
vendored
@ -4,7 +4,7 @@
|
||||
|
||||
namespace Composer\Autoload;
|
||||
|
||||
class ComposerStaticInit8f7a394c9833558affbdc5862d2dd947
|
||||
class ComposerStaticInitfe37de9c9bb48d015cb11dbfa2054304
|
||||
{
|
||||
public static $files = array (
|
||||
'320cde22f66dd4f5d3fd621d3e88b98f' => __DIR__ . '/..' . '/symfony/polyfill-ctype/bootstrap.php',
|
||||
@ -3869,9 +3869,9 @@ class ComposerStaticInit8f7a394c9833558affbdc5862d2dd947
|
||||
public static function getInitializer(ClassLoader $loader)
|
||||
{
|
||||
return \Closure::bind(function () use ($loader) {
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInit8f7a394c9833558affbdc5862d2dd947::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInit8f7a394c9833558affbdc5862d2dd947::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInit8f7a394c9833558affbdc5862d2dd947::$classMap;
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInitfe37de9c9bb48d015cb11dbfa2054304::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInitfe37de9c9bb48d015cb11dbfa2054304::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInitfe37de9c9bb48d015cb11dbfa2054304::$classMap;
|
||||
|
||||
}, null, ClassLoader::class);
|
||||
}
|
||||
|
22
vendor/composer/installed.json
vendored
22
vendor/composer/installed.json
vendored
@ -1145,17 +1145,17 @@
|
||||
},
|
||||
{
|
||||
"name": "phpstan\/phpstan-phpunit",
|
||||
"version": "1.1.0",
|
||||
"version_normalized": "1.1.0.0",
|
||||
"version": "1.1.1",
|
||||
"version_normalized": "1.1.1.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https:\/\/github.com\/phpstan\/phpstan-phpunit.git",
|
||||
"reference": "09133ce914f1388a8bb8c7f8573aaa3723cff52a"
|
||||
"reference": "4a3c437c09075736285d1cabb5c75bf27ed0bc84"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https:\/\/api.github.com\/repos\/phpstan\/phpstan-phpunit\/zipball\/09133ce914f1388a8bb8c7f8573aaa3723cff52a",
|
||||
"reference": "09133ce914f1388a8bb8c7f8573aaa3723cff52a",
|
||||
"url": "https:\/\/api.github.com\/repos\/phpstan\/phpstan-phpunit\/zipball\/4a3c437c09075736285d1cabb5c75bf27ed0bc84",
|
||||
"reference": "4a3c437c09075736285d1cabb5c75bf27ed0bc84",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@ -1171,7 +1171,7 @@
|
||||
"phpstan\/phpstan-strict-rules": "^1.0",
|
||||
"phpunit\/phpunit": "^9.5"
|
||||
},
|
||||
"time": "2022-03-28T09:20:49+00:00",
|
||||
"time": "2022-04-20T15:24:25+00:00",
|
||||
"type": "phpstan-extension",
|
||||
"extra": {
|
||||
"phpstan": {
|
||||
@ -1194,7 +1194,7 @@
|
||||
"description": "PHPUnit extensions and rules for PHPStan",
|
||||
"support": {
|
||||
"issues": "https:\/\/github.com\/phpstan\/phpstan-phpunit\/issues",
|
||||
"source": "https:\/\/github.com\/phpstan\/phpstan-phpunit\/tree\/1.1.0"
|
||||
"source": "https:\/\/github.com\/phpstan\/phpstan-phpunit\/tree\/1.1.1"
|
||||
},
|
||||
"install-path": "..\/phpstan\/phpstan-phpunit"
|
||||
},
|
||||
@ -2767,12 +2767,12 @@
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https:\/\/github.com\/sabbelasichon\/typo3-rector.git",
|
||||
"reference": "af3367c8088909a4b9ccbe71c325464c54a128d9"
|
||||
"reference": "7b11cdde3478a77e70f1350de64c61d7a4d2fcd4"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https:\/\/api.github.com\/repos\/sabbelasichon\/typo3-rector\/zipball\/af3367c8088909a4b9ccbe71c325464c54a128d9",
|
||||
"reference": "af3367c8088909a4b9ccbe71c325464c54a128d9",
|
||||
"url": "https:\/\/api.github.com\/repos\/sabbelasichon\/typo3-rector\/zipball\/7b11cdde3478a77e70f1350de64c61d7a4d2fcd4",
|
||||
"reference": "7b11cdde3478a77e70f1350de64c61d7a4d2fcd4",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@ -2802,7 +2802,7 @@
|
||||
"symplify\/vendor-patches": "^10.1",
|
||||
"tracy\/tracy": "^2.8"
|
||||
},
|
||||
"time": "2022-04-20T04:43:13+00:00",
|
||||
"time": "2022-04-20T15:02:18+00:00",
|
||||
"default-branch": true,
|
||||
"type": "rector-extension",
|
||||
"extra": {
|
||||
|
2
vendor/composer/installed.php
vendored
2
vendor/composer/installed.php
vendored
File diff suppressed because one or more lines are too long
43
vendor/phpstan/phpstan-phpunit/build-cs/composer.lock
generated
vendored
43
vendor/phpstan/phpstan-phpunit/build-cs/composer.lock
generated
vendored
@ -151,35 +151,30 @@
|
||||
},
|
||||
{
|
||||
"name": "phpstan/phpdoc-parser",
|
||||
"version": "1.2.0",
|
||||
"version": "1.4.2",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/phpstan/phpdoc-parser.git",
|
||||
"reference": "dbc093d7af60eff5cd575d2ed761b15ed40bd08e"
|
||||
"reference": "4cb3021a4e10ffe3d5f94a4c34cf4b3f6de2fa3d"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/phpstan/phpdoc-parser/zipball/dbc093d7af60eff5cd575d2ed761b15ed40bd08e",
|
||||
"reference": "dbc093d7af60eff5cd575d2ed761b15ed40bd08e",
|
||||
"url": "https://api.github.com/repos/phpstan/phpdoc-parser/zipball/4cb3021a4e10ffe3d5f94a4c34cf4b3f6de2fa3d",
|
||||
"reference": "4cb3021a4e10ffe3d5f94a4c34cf4b3f6de2fa3d",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"php": "^7.1 || ^8.0"
|
||||
"php": "^7.2 || ^8.0"
|
||||
},
|
||||
"require-dev": {
|
||||
"php-parallel-lint/php-parallel-lint": "^1.2",
|
||||
"phpstan/extension-installer": "^1.0",
|
||||
"phpstan/phpstan": "^1.0",
|
||||
"phpstan/phpstan": "^1.5",
|
||||
"phpstan/phpstan-strict-rules": "^1.0",
|
||||
"phpunit/phpunit": "^9.5",
|
||||
"symfony/process": "^5.2"
|
||||
},
|
||||
"type": "library",
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"dev-master": "1.0-dev"
|
||||
}
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"PHPStan\\PhpDocParser\\": [
|
||||
@ -194,36 +189,36 @@
|
||||
"description": "PHPDoc parser with support for nullable, intersection and generic types",
|
||||
"support": {
|
||||
"issues": "https://github.com/phpstan/phpdoc-parser/issues",
|
||||
"source": "https://github.com/phpstan/phpdoc-parser/tree/1.2.0"
|
||||
"source": "https://github.com/phpstan/phpdoc-parser/tree/1.4.2"
|
||||
},
|
||||
"time": "2021-09-16T20:46:02+00:00"
|
||||
"time": "2022-03-30T13:33:37+00:00"
|
||||
},
|
||||
{
|
||||
"name": "slevomat/coding-standard",
|
||||
"version": "7.0.20",
|
||||
"version": "7.1",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/slevomat/coding-standard.git",
|
||||
"reference": "cbfadfe34c2c29473bf1e891306b3950b3b4350b"
|
||||
"reference": "b521bd358b5f7a7d69e9637fd139e036d8adeb6f"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/slevomat/coding-standard/zipball/cbfadfe34c2c29473bf1e891306b3950b3b4350b",
|
||||
"reference": "cbfadfe34c2c29473bf1e891306b3950b3b4350b",
|
||||
"url": "https://api.github.com/repos/slevomat/coding-standard/zipball/b521bd358b5f7a7d69e9637fd139e036d8adeb6f",
|
||||
"reference": "b521bd358b5f7a7d69e9637fd139e036d8adeb6f",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"dealerdirect/phpcodesniffer-composer-installer": "^0.6.2 || ^0.7",
|
||||
"php": "^7.1 || ^8.0",
|
||||
"phpstan/phpdoc-parser": "^1.0.0",
|
||||
"php": "^7.2 || ^8.0",
|
||||
"phpstan/phpdoc-parser": "^1.4.1",
|
||||
"squizlabs/php_codesniffer": "^3.6.2"
|
||||
},
|
||||
"require-dev": {
|
||||
"phing/phing": "2.17.2",
|
||||
"php-parallel-lint/php-parallel-lint": "1.3.2",
|
||||
"phpstan/phpstan": "1.4.10|1.5.0",
|
||||
"phpstan/phpstan": "1.4.10|1.5.2",
|
||||
"phpstan/phpstan-deprecation-rules": "1.0.0",
|
||||
"phpstan/phpstan-phpunit": "1.0.0",
|
||||
"phpstan/phpstan-phpunit": "1.0.0|1.1.0",
|
||||
"phpstan/phpstan-strict-rules": "1.1.0",
|
||||
"phpunit/phpunit": "7.5.20|8.5.21|9.5.19"
|
||||
},
|
||||
@ -245,7 +240,7 @@
|
||||
"description": "Slevomat Coding Standard for PHP_CodeSniffer complements Consistence Coding Standard by providing sniffs with additional checks.",
|
||||
"support": {
|
||||
"issues": "https://github.com/slevomat/coding-standard/issues",
|
||||
"source": "https://github.com/slevomat/coding-standard/tree/7.0.20"
|
||||
"source": "https://github.com/slevomat/coding-standard/tree/7.1"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
@ -257,7 +252,7 @@
|
||||
"type": "tidelift"
|
||||
}
|
||||
],
|
||||
"time": "2022-03-25T09:43:20+00:00"
|
||||
"time": "2022-03-29T12:44:16+00:00"
|
||||
},
|
||||
{
|
||||
"name": "squizlabs/php_codesniffer",
|
||||
@ -323,5 +318,5 @@
|
||||
"prefer-lowest": false,
|
||||
"platform": [],
|
||||
"platform-dev": [],
|
||||
"plugin-api-version": "2.2.0"
|
||||
"plugin-api-version": "2.3.0"
|
||||
}
|
||||
|
@ -4,12 +4,12 @@ declare (strict_types=1);
|
||||
namespace PHPStan\Rules\PHPUnit;
|
||||
|
||||
use PhpParser\Node;
|
||||
use PhpParser\Node\Expr\ConstFetch;
|
||||
use PhpParser\Node\Expr\MethodCall;
|
||||
use PhpParser\Node\Expr\StaticCall;
|
||||
use PhpParser\NodeAbstract;
|
||||
use PHPStan\Analyser\Scope;
|
||||
use PHPStan\Rules\Rule;
|
||||
use PHPStan\Type\Constant\ConstantBooleanType;
|
||||
use function count;
|
||||
use function strtolower;
|
||||
/**
|
||||
@ -34,13 +34,16 @@ class AssertSameBooleanExpectedRule implements \PHPStan\Rules\Rule
|
||||
if (!$node->name instanceof \PhpParser\Node\Identifier || \strtolower($node->name->name) !== 'assertsame') {
|
||||
return [];
|
||||
}
|
||||
$leftType = $scope->getType($node->getArgs()[0]->value);
|
||||
if (!$leftType instanceof \PHPStan\Type\Constant\ConstantBooleanType) {
|
||||
$expectedArgumentValue = $node->getArgs()[0]->value;
|
||||
if (!$expectedArgumentValue instanceof \PhpParser\Node\Expr\ConstFetch) {
|
||||
return [];
|
||||
}
|
||||
if ($leftType->getValue()) {
|
||||
if ($expectedArgumentValue->name->toLowerString() === 'true') {
|
||||
return ['You should use assertTrue() instead of assertSame() when expecting "true"'];
|
||||
}
|
||||
return ['You should use assertFalse() instead of assertSame() when expecting "false"'];
|
||||
if ($expectedArgumentValue->name->toLowerString() === 'false') {
|
||||
return ['You should use assertFalse() instead of assertSame() when expecting "false"'];
|
||||
}
|
||||
return [];
|
||||
}
|
||||
}
|
||||
|
@ -4,12 +4,12 @@ declare (strict_types=1);
|
||||
namespace PHPStan\Rules\PHPUnit;
|
||||
|
||||
use PhpParser\Node;
|
||||
use PhpParser\Node\Expr\ConstFetch;
|
||||
use PhpParser\Node\Expr\MethodCall;
|
||||
use PhpParser\Node\Expr\StaticCall;
|
||||
use PhpParser\NodeAbstract;
|
||||
use PHPStan\Analyser\Scope;
|
||||
use PHPStan\Rules\Rule;
|
||||
use PHPStan\Type\NullType;
|
||||
use function count;
|
||||
use function strtolower;
|
||||
/**
|
||||
@ -34,8 +34,11 @@ class AssertSameNullExpectedRule implements \PHPStan\Rules\Rule
|
||||
if (!$node->name instanceof \PhpParser\Node\Identifier || \strtolower($node->name->name) !== 'assertsame') {
|
||||
return [];
|
||||
}
|
||||
$leftType = $scope->getType($node->getArgs()[0]->value);
|
||||
if ($leftType instanceof \PHPStan\Type\NullType) {
|
||||
$expectedArgumentValue = $node->getArgs()[0]->value;
|
||||
if (!$expectedArgumentValue instanceof \PhpParser\Node\Expr\ConstFetch) {
|
||||
return [];
|
||||
}
|
||||
if ($expectedArgumentValue->name->toLowerString() === 'null') {
|
||||
return ['You should use assertNull() instead of assertSame(null, $actual).'];
|
||||
}
|
||||
return [];
|
||||
|
@ -9,7 +9,7 @@ namespace Rector\RectorInstaller;
|
||||
*/
|
||||
final class GeneratedConfig
|
||||
{
|
||||
public const EXTENSIONS = array('rector/rector-cakephp' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-cakephp', 'relative_install_path' => '../../rector-cakephp', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main dc4fbb8'), 'rector/rector-doctrine' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-doctrine', 'relative_install_path' => '../../rector-doctrine', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 3f5c267'), 'rector/rector-generator' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-generator', 'relative_install_path' => '../../rector-generator', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 5d945fb'), 'rector/rector-laravel' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-laravel', 'relative_install_path' => '../../rector-laravel', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main b794171'), 'rector/rector-nette' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-nette', 'relative_install_path' => '../../rector-nette', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 2fc8a27'), 'rector/rector-phpoffice' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-phpoffice', 'relative_install_path' => '../../rector-phpoffice', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 236ccc2'), 'rector/rector-phpunit' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-phpunit', 'relative_install_path' => '../../rector-phpunit', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main c61751f'), 'rector/rector-symfony' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-symfony', 'relative_install_path' => '../../rector-symfony', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 7dd7cdf'), 'ssch/typo3-rector' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/ssch/typo3-rector', 'relative_install_path' => '../../../ssch/typo3-rector', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main af3367c'));
|
||||
public const EXTENSIONS = array('rector/rector-cakephp' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-cakephp', 'relative_install_path' => '../../rector-cakephp', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main dc4fbb8'), 'rector/rector-doctrine' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-doctrine', 'relative_install_path' => '../../rector-doctrine', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 3f5c267'), 'rector/rector-generator' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-generator', 'relative_install_path' => '../../rector-generator', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 5d945fb'), 'rector/rector-laravel' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-laravel', 'relative_install_path' => '../../rector-laravel', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main b794171'), 'rector/rector-nette' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-nette', 'relative_install_path' => '../../rector-nette', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 2fc8a27'), 'rector/rector-phpoffice' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-phpoffice', 'relative_install_path' => '../../rector-phpoffice', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 236ccc2'), 'rector/rector-phpunit' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-phpunit', 'relative_install_path' => '../../rector-phpunit', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main c61751f'), 'rector/rector-symfony' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-symfony', 'relative_install_path' => '../../rector-symfony', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 7dd7cdf'), 'ssch/typo3-rector' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/ssch/typo3-rector', 'relative_install_path' => '../../../ssch/typo3-rector', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 7b11cdd'));
|
||||
private function __construct()
|
||||
{
|
||||
}
|
||||
|
10
vendor/scoper-autoload.php
vendored
10
vendor/scoper-autoload.php
vendored
@ -9,8 +9,8 @@ $loader = require_once __DIR__.'/autoload.php';
|
||||
if (!class_exists('AutoloadIncluder', false) && !interface_exists('AutoloadIncluder', false) && !trait_exists('AutoloadIncluder', false)) {
|
||||
spl_autoload_call('RectorPrefix20220420\AutoloadIncluder');
|
||||
}
|
||||
if (!class_exists('ComposerAutoloaderInit8f7a394c9833558affbdc5862d2dd947', false) && !interface_exists('ComposerAutoloaderInit8f7a394c9833558affbdc5862d2dd947', false) && !trait_exists('ComposerAutoloaderInit8f7a394c9833558affbdc5862d2dd947', false)) {
|
||||
spl_autoload_call('RectorPrefix20220420\ComposerAutoloaderInit8f7a394c9833558affbdc5862d2dd947');
|
||||
if (!class_exists('ComposerAutoloaderInitfe37de9c9bb48d015cb11dbfa2054304', false) && !interface_exists('ComposerAutoloaderInitfe37de9c9bb48d015cb11dbfa2054304', false) && !trait_exists('ComposerAutoloaderInitfe37de9c9bb48d015cb11dbfa2054304', false)) {
|
||||
spl_autoload_call('RectorPrefix20220420\ComposerAutoloaderInitfe37de9c9bb48d015cb11dbfa2054304');
|
||||
}
|
||||
if (!class_exists('Helmich\TypoScriptParser\Parser\AST\Statement', false) && !interface_exists('Helmich\TypoScriptParser\Parser\AST\Statement', false) && !trait_exists('Helmich\TypoScriptParser\Parser\AST\Statement', false)) {
|
||||
spl_autoload_call('RectorPrefix20220420\Helmich\TypoScriptParser\Parser\AST\Statement');
|
||||
@ -59,9 +59,9 @@ if (!function_exists('print_node')) {
|
||||
return \RectorPrefix20220420\print_node(...func_get_args());
|
||||
}
|
||||
}
|
||||
if (!function_exists('composerRequire8f7a394c9833558affbdc5862d2dd947')) {
|
||||
function composerRequire8f7a394c9833558affbdc5862d2dd947() {
|
||||
return \RectorPrefix20220420\composerRequire8f7a394c9833558affbdc5862d2dd947(...func_get_args());
|
||||
if (!function_exists('composerRequirefe37de9c9bb48d015cb11dbfa2054304')) {
|
||||
function composerRequirefe37de9c9bb48d015cb11dbfa2054304() {
|
||||
return \RectorPrefix20220420\composerRequirefe37de9c9bb48d015cb11dbfa2054304(...func_get_args());
|
||||
}
|
||||
}
|
||||
if (!function_exists('scanPath')) {
|
||||
|
File diff suppressed because one or more lines are too long
@ -6,10 +6,9 @@ namespace RectorPrefix20220420;
|
||||
use Rector\Composer\Rector\ChangePackageVersionComposerRector;
|
||||
use Rector\Composer\Rector\RemovePackageComposerRector;
|
||||
use Rector\Composer\ValueObject\PackageAndVersion;
|
||||
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
||||
return static function (\Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator $containerConfigurator) : void {
|
||||
$containerConfigurator->import(__DIR__ . '/../config.php');
|
||||
$services = $containerConfigurator->services();
|
||||
$services->set(\Rector\Composer\Rector\RemovePackageComposerRector::class)->configure(['typo3/cms-rsaauth', 'typo3/cms', 'typo3/cms-context-help', 'typo3/cms-info-pagetsconfig', 'typo3/cms-wizard-crpages', 'typo3/cms-wizard-sortpages', 'typo3/cms-cshmanual', 'typo3/cms-func', 'typo3/cms-documentation', 'dmitryd/typo3-realurl', 'typo3-ter/typo3-realurl']);
|
||||
$services->set(\Rector\Composer\Rector\ChangePackageVersionComposerRector::class)->configure([new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-about', '^10.4'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-adminpanel', '^10.4'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-backend', '^10.4'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-belog', '^10.4'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-beuser', '^10.4'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-core', '^10.4'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-dashboard', '^10.4'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-extbase', '^10.4'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-extensionmanager', '^10.4'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-felogin', '^10.4'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-filelist', '^10.4'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-filemetadata', '^10.4'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-fluid', '^10.4'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-fluid-styled-content', '^10.4'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-form', '^10.4'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-frontend', '^10.4'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-impexp', '^10.4'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-indexed-search', '^10.4'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-info', '^10.4'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-install', '^10.4'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-linkvalidator', '^10.4'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-lowlevel', '^10.4'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-opendocs', '^10.4'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-recordlist', '^10.4'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-recycler', '^10.4'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-redirects', '^10.4'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-reports', '^10.4'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-rte-ckeditor', '^10.4'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-scheduler', '^10.4'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-seo', '^10.4'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-setup', '^10.4'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-sys-note', '^10.4'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-t3editor', '^10.4'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-tstemplate', '^10.4'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-viewpage', '^10.4'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-workspaces', '^10.4'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3-console/composer-auto-commands', '^0.4.0'), new \Rector\Composer\ValueObject\PackageAndVersion('helhum/typo3-console', '^6.0'), new \Rector\Composer\ValueObject\PackageAndVersion('helhum/dotenv-connector', '^3.0'), new \Rector\Composer\ValueObject\PackageAndVersion('helhum/typo3-secure-web', '^0.3.0'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3-console/composer-typo3-auto-install', '^0.4.0')]);
|
||||
use Rector\Config\RectorConfig;
|
||||
return static function (\Rector\Config\RectorConfig $rectorConfig) : void {
|
||||
$rectorConfig->import(__DIR__ . '/../config.php');
|
||||
$rectorConfig->ruleWithConfiguration(\Rector\Composer\Rector\RemovePackageComposerRector::class, ['typo3/cms-rsaauth', 'typo3/cms', 'typo3/cms-context-help', 'typo3/cms-info-pagetsconfig', 'typo3/cms-wizard-crpages', 'typo3/cms-wizard-sortpages', 'typo3/cms-cshmanual', 'typo3/cms-func', 'typo3/cms-documentation', 'dmitryd/typo3-realurl', 'typo3-ter/typo3-realurl']);
|
||||
$rectorConfig->ruleWithConfiguration(\Rector\Composer\Rector\ChangePackageVersionComposerRector::class, [new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-about', '^10.4'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-adminpanel', '^10.4'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-backend', '^10.4'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-belog', '^10.4'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-beuser', '^10.4'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-core', '^10.4'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-dashboard', '^10.4'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-extbase', '^10.4'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-extensionmanager', '^10.4'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-felogin', '^10.4'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-filelist', '^10.4'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-filemetadata', '^10.4'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-fluid', '^10.4'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-fluid-styled-content', '^10.4'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-form', '^10.4'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-frontend', '^10.4'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-impexp', '^10.4'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-indexed-search', '^10.4'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-info', '^10.4'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-install', '^10.4'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-linkvalidator', '^10.4'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-lowlevel', '^10.4'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-opendocs', '^10.4'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-recordlist', '^10.4'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-recycler', '^10.4'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-redirects', '^10.4'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-reports', '^10.4'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-rte-ckeditor', '^10.4'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-scheduler', '^10.4'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-seo', '^10.4'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-setup', '^10.4'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-sys-note', '^10.4'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-t3editor', '^10.4'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-tstemplate', '^10.4'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-viewpage', '^10.4'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-workspaces', '^10.4'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3-console/composer-auto-commands', '^0.4.0'), new \Rector\Composer\ValueObject\PackageAndVersion('helhum/typo3-console', '^6.0'), new \Rector\Composer\ValueObject\PackageAndVersion('helhum/dotenv-connector', '^3.0'), new \Rector\Composer\ValueObject\PackageAndVersion('helhum/typo3-secure-web', '^0.3.0'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3-console/composer-typo3-auto-install', '^0.4.0')]);
|
||||
};
|
||||
|
File diff suppressed because one or more lines are too long
@ -6,10 +6,9 @@ namespace RectorPrefix20220420;
|
||||
use Rector\Composer\Rector\ChangePackageVersionComposerRector;
|
||||
use Rector\Composer\Rector\RemovePackageComposerRector;
|
||||
use Rector\Composer\ValueObject\PackageAndVersion;
|
||||
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
||||
return static function (\Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator $containerConfigurator) : void {
|
||||
$containerConfigurator->import(__DIR__ . '/../config.php');
|
||||
$services = $containerConfigurator->services();
|
||||
$services->set(\Rector\Composer\Rector\RemovePackageComposerRector::class)->configure(['typo3/cms-context-help', 'typo3/cms-info-pagetsconfig', 'typo3/cms-wizard-crpages', 'typo3/cms-rsaauth']);
|
||||
$services->set(\Rector\Composer\Rector\ChangePackageVersionComposerRector::class)->configure([new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-about', '^11.0'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-adminpanel', '^11.0'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-backend', '^11.0'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-belog', '^11.0'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-beuser', '^11.0'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-core', '^11.0'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-dashboard', '^11.0'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-extbase', '^11.0'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-extensionmanager', '^11.0'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-felogin', '^11.0'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-filelist', '^11.0'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-filemetadata', '^11.0'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-fluid', '^11.0'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-fluid-styled-content', '^11.0'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-form', '^11.0'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-frontend', '^11.0'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-impexp', '^11.0'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-indexed-search', '^11.0'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-info', '^11.0'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-install', '^11.0'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-linkvalidator', '^11.0'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-lowlevel', '^11.0'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-opendocs', '^11.0'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-recordlist', '^11.0'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-recycler', '^11.0'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-redirects', '^11.0'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-reports', '^11.0'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-rte-ckeditor', '^11.0'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-scheduler', '^11.0'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-seo', '^11.0'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-setup', '^11.0'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-sys-note', '^11.0'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-t3editor', '^11.0'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-tstemplate', '^11.0'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-viewpage', '^11.0'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-workspaces', '^11.0')]);
|
||||
use Rector\Config\RectorConfig;
|
||||
return static function (\Rector\Config\RectorConfig $rectorConfig) : void {
|
||||
$rectorConfig->import(__DIR__ . '/../config.php');
|
||||
$rectorConfig->ruleWithConfiguration(\Rector\Composer\Rector\RemovePackageComposerRector::class, ['typo3/cms-context-help', 'typo3/cms-info-pagetsconfig', 'typo3/cms-wizard-crpages', 'typo3/cms-rsaauth']);
|
||||
$rectorConfig->ruleWithConfiguration(\Rector\Composer\Rector\ChangePackageVersionComposerRector::class, [new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-about', '^11.0'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-adminpanel', '^11.0'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-backend', '^11.0'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-belog', '^11.0'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-beuser', '^11.0'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-core', '^11.0'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-dashboard', '^11.0'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-extbase', '^11.0'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-extensionmanager', '^11.0'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-felogin', '^11.0'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-filelist', '^11.0'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-filemetadata', '^11.0'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-fluid', '^11.0'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-fluid-styled-content', '^11.0'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-form', '^11.0'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-frontend', '^11.0'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-impexp', '^11.0'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-indexed-search', '^11.0'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-info', '^11.0'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-install', '^11.0'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-linkvalidator', '^11.0'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-lowlevel', '^11.0'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-opendocs', '^11.0'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-recordlist', '^11.0'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-recycler', '^11.0'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-redirects', '^11.0'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-reports', '^11.0'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-rte-ckeditor', '^11.0'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-scheduler', '^11.0'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-seo', '^11.0'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-setup', '^11.0'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-sys-note', '^11.0'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-t3editor', '^11.0'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-tstemplate', '^11.0'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-viewpage', '^11.0'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-workspaces', '^11.0')]);
|
||||
};
|
||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -6,10 +6,9 @@ namespace RectorPrefix20220420;
|
||||
use Rector\Composer\Rector\ChangePackageVersionComposerRector;
|
||||
use Rector\Composer\Rector\RemovePackageComposerRector;
|
||||
use Rector\Composer\ValueObject\PackageAndVersion;
|
||||
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
||||
return static function (\Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator $containerConfigurator) : void {
|
||||
$containerConfigurator->import(__DIR__ . '/../config.php');
|
||||
$services = $containerConfigurator->services();
|
||||
$services->set(\Rector\Composer\Rector\RemovePackageComposerRector::class)->configure(['typo3/cms', 'typo3/cms-context-help', 'typo3/cms-info-pagetsconfig', 'typo3/cms-wizard-crpages', 'typo3/cms-wizard-sortpages', 'typo3/cms-cshmanual', 'typo3/cms-func', 'typo3/cms-documentation', 'dmitryd/typo3-realurl', 'typo3-ter/typo3-realurl']);
|
||||
$services->set(\Rector\Composer\Rector\ChangePackageVersionComposerRector::class)->configure([new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-about', '^9.5'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-adminpanel', '^9.5'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-backend', '^9.5'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-belog', '^9.5'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-beuser', '^9.5'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-core', '^9.5'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-extbase', '^9.5'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-extensionmanager', '^9.5'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-feedit', '^9.5'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-felogin', '^9.5'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-filelist', '^9.5'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-filemetadata', '^9.5'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-fluid', '^9.5'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-fluid-styled-content', '^9.5'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-form', '^9.5'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-frontend', '^9.5'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-impexp', '^9.5'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-indexed-search', '^9.5'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-info', '^9.5'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-install', '^9.5'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-linkvalidator', '^9.5'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-lowlevel', '^9.5'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-opendocs', '^9.5'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-recordlist', '^9.5'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-recycler', '^9.5'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-redirects', '^9.5'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-reports', '^9.5'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-rsaauth', '^9.5'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-rte-ckeditor', '^9.5'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-scheduler', '^9.5'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-seo', '^9.5'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-setup', '^9.5'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-sys-action', '^9.5'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-sys-note', '^9.5'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-t3editor', '^9.5'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-taskcenter', '^9.5'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-tstemplate', '^9.5'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-viewpage', '^9.5'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-workspaces', '^9.5'), new \Rector\Composer\ValueObject\PackageAndVersion('helhum/typo3-console', '^5.0'), new \Rector\Composer\ValueObject\PackageAndVersion('helhum/dotenv-connector', '^3.0'), new \Rector\Composer\ValueObject\PackageAndVersion('helhum/typo3-secure-web', '^0.3.0'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3-console/composer-typo3-auto-install', '^0.3.0')]);
|
||||
use Rector\Config\RectorConfig;
|
||||
return static function (\Rector\Config\RectorConfig $rectorConfig) : void {
|
||||
$rectorConfig->import(__DIR__ . '/../config.php');
|
||||
$rectorConfig->ruleWithConfiguration(\Rector\Composer\Rector\RemovePackageComposerRector::class, ['typo3/cms', 'typo3/cms-context-help', 'typo3/cms-info-pagetsconfig', 'typo3/cms-wizard-crpages', 'typo3/cms-wizard-sortpages', 'typo3/cms-cshmanual', 'typo3/cms-func', 'typo3/cms-documentation', 'dmitryd/typo3-realurl', 'typo3-ter/typo3-realurl']);
|
||||
$rectorConfig->ruleWithConfiguration(\Rector\Composer\Rector\ChangePackageVersionComposerRector::class, [new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-about', '^9.5'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-adminpanel', '^9.5'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-backend', '^9.5'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-belog', '^9.5'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-beuser', '^9.5'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-core', '^9.5'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-extbase', '^9.5'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-extensionmanager', '^9.5'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-feedit', '^9.5'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-felogin', '^9.5'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-filelist', '^9.5'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-filemetadata', '^9.5'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-fluid', '^9.5'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-fluid-styled-content', '^9.5'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-form', '^9.5'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-frontend', '^9.5'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-impexp', '^9.5'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-indexed-search', '^9.5'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-info', '^9.5'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-install', '^9.5'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-linkvalidator', '^9.5'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-lowlevel', '^9.5'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-opendocs', '^9.5'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-recordlist', '^9.5'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-recycler', '^9.5'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-redirects', '^9.5'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-reports', '^9.5'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-rsaauth', '^9.5'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-rte-ckeditor', '^9.5'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-scheduler', '^9.5'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-seo', '^9.5'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-setup', '^9.5'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-sys-action', '^9.5'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-sys-note', '^9.5'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-t3editor', '^9.5'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-taskcenter', '^9.5'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-tstemplate', '^9.5'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-viewpage', '^9.5'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3/cms-workspaces', '^9.5'), new \Rector\Composer\ValueObject\PackageAndVersion('helhum/typo3-console', '^5.0'), new \Rector\Composer\ValueObject\PackageAndVersion('helhum/dotenv-connector', '^3.0'), new \Rector\Composer\ValueObject\PackageAndVersion('helhum/typo3-secure-web', '^0.3.0'), new \Rector\Composer\ValueObject\PackageAndVersion('typo3-console/composer-typo3-auto-install', '^0.3.0')]);
|
||||
};
|
||||
|
File diff suppressed because one or more lines are too long
12
vendor/ssch/typo3-rector/config/config_test.php
vendored
12
vendor/ssch/typo3-rector/config/config_test.php
vendored
@ -3,12 +3,10 @@
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220420;
|
||||
|
||||
use Rector\Core\Configuration\Option;
|
||||
use Rector\Config\RectorConfig;
|
||||
use Ssch\TYPO3Rector\Configuration\Typo3Option;
|
||||
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
||||
return static function (\Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator $containerConfigurator) : void {
|
||||
$containerConfigurator->import(__DIR__ . '/config.php');
|
||||
$parameters = $containerConfigurator->parameters();
|
||||
$parameters->set(\Rector\Core\Configuration\Option::AUTO_IMPORT_NAMES, \true);
|
||||
$parameters->set(\Rector\Core\Configuration\Option::PHPSTAN_FOR_RECTOR_PATH, \Ssch\TYPO3Rector\Configuration\Typo3Option::PHPSTAN_FOR_RECTOR_PATH);
|
||||
return static function (\Rector\Config\RectorConfig $rectorConfig) : void {
|
||||
$rectorConfig->import(__DIR__ . '/config.php');
|
||||
$rectorConfig->importNames();
|
||||
$rectorConfig->phpstanConfig(\Ssch\TYPO3Rector\Configuration\Typo3Option::PHPSTAN_FOR_RECTOR_PATH);
|
||||
};
|
||||
|
@ -3,10 +3,9 @@
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220420;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Ssch\TYPO3Rector\Rector\v9\v0\DatabaseConnectionToDbalRector;
|
||||
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
||||
return static function (\Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator $containerConfigurator) : void {
|
||||
$containerConfigurator->import(__DIR__ . '/config.php');
|
||||
$services = $containerConfigurator->services();
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v9\v0\DatabaseConnectionToDbalRector::class);
|
||||
return static function (\Rector\Config\RectorConfig $rectorConfig) : void {
|
||||
$rectorConfig->import(__DIR__ . '/config.php');
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v9\v0\DatabaseConnectionToDbalRector::class);
|
||||
};
|
||||
|
@ -3,12 +3,11 @@
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220420;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Rector\Transform\Rector\MethodCall\MethodCallToStaticCallRector;
|
||||
use Rector\Transform\ValueObject\MethodCallToStaticCall;
|
||||
use Ssch\TYPO3Rector\Rector\Experimental\OptionalConstructorToHardRequirementRector;
|
||||
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
||||
return static function (\Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator $containerConfigurator) : void {
|
||||
$services = $containerConfigurator->services();
|
||||
$services->set(\Rector\Transform\Rector\MethodCall\MethodCallToStaticCallRector::class)->configure([new \Rector\Transform\ValueObject\MethodCallToStaticCall('TYPO3\\CMS\\Extbase\\Object\\ObjectManagerInterface', 'get', 'TYPO3\\CMS\\Core\\Utility\\GeneralUtility', 'makeInstance')]);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\Experimental\OptionalConstructorToHardRequirementRector::class);
|
||||
return static function (\Rector\Config\RectorConfig $rectorConfig) : void {
|
||||
$rectorConfig->ruleWithConfiguration(\Rector\Transform\Rector\MethodCall\MethodCallToStaticCallRector::class, [new \Rector\Transform\ValueObject\MethodCallToStaticCall('TYPO3\\CMS\\Extbase\\Object\\ObjectManagerInterface', 'get', 'TYPO3\\CMS\\Core\\Utility\\GeneralUtility', 'makeInstance')]);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\Experimental\OptionalConstructorToHardRequirementRector::class);
|
||||
};
|
||||
|
@ -3,14 +3,13 @@
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220420;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Ssch\TYPO3Rector\Rector\v9\v5\ExtbaseCommandControllerToSymfonyCommand\AddArgumentToSymfonyCommandRector;
|
||||
use Ssch\TYPO3Rector\Rector\v9\v5\ExtbaseCommandControllerToSymfonyCommand\AddCommandsToReturnRector;
|
||||
use Ssch\TYPO3Rector\Rector\v9\v5\ExtbaseCommandControllerToSymfonyCommandRector;
|
||||
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
||||
return static function (\Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator $containerConfigurator) : void {
|
||||
$containerConfigurator->import(__DIR__ . '/../config.php');
|
||||
$services = $containerConfigurator->services();
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v9\v5\ExtbaseCommandControllerToSymfonyCommand\AddArgumentToSymfonyCommandRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v9\v5\ExtbaseCommandControllerToSymfonyCommand\AddCommandsToReturnRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v9\v5\ExtbaseCommandControllerToSymfonyCommandRector::class);
|
||||
return static function (\Rector\Config\RectorConfig $rectorConfig) : void {
|
||||
$rectorConfig->import(__DIR__ . '/../config.php');
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v9\v5\ExtbaseCommandControllerToSymfonyCommand\AddArgumentToSymfonyCommandRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v9\v5\ExtbaseCommandControllerToSymfonyCommand\AddCommandsToReturnRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v9\v5\ExtbaseCommandControllerToSymfonyCommandRector::class);
|
||||
};
|
||||
|
@ -3,10 +3,9 @@
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220420;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Ssch\TYPO3Rector\Set\Typo3LevelSetList;
|
||||
use Ssch\TYPO3Rector\Set\Typo3SetList;
|
||||
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
||||
return static function (\Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator $containerConfigurator) : void {
|
||||
$containerConfigurator->import(\Ssch\TYPO3Rector\Set\Typo3LevelSetList::UP_TO_TYPO3_9);
|
||||
$containerConfigurator->import(\Ssch\TYPO3Rector\Set\Typo3SetList::TYPO3_104);
|
||||
return static function (\Rector\Config\RectorConfig $rectorConfig) : void {
|
||||
$rectorConfig->sets([\Ssch\TYPO3Rector\Set\Typo3LevelSetList::UP_TO_TYPO3_9, \Ssch\TYPO3Rector\Set\Typo3SetList::TYPO3_104]);
|
||||
};
|
||||
|
@ -3,10 +3,9 @@
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220420;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Ssch\TYPO3Rector\Set\Typo3LevelSetList;
|
||||
use Ssch\TYPO3Rector\Set\Typo3SetList;
|
||||
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
||||
return static function (\Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator $containerConfigurator) : void {
|
||||
$containerConfigurator->import(\Ssch\TYPO3Rector\Set\Typo3LevelSetList::UP_TO_TYPO3_10);
|
||||
$containerConfigurator->import(\Ssch\TYPO3Rector\Set\Typo3SetList::TYPO3_11);
|
||||
return static function (\Rector\Config\RectorConfig $rectorConfig) : void {
|
||||
$rectorConfig->sets([\Ssch\TYPO3Rector\Set\Typo3LevelSetList::UP_TO_TYPO3_10, \Ssch\TYPO3Rector\Set\Typo3SetList::TYPO3_11]);
|
||||
};
|
||||
|
@ -3,8 +3,8 @@
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220420;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Ssch\TYPO3Rector\Set\Typo3SetList;
|
||||
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
||||
return static function (\Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator $containerConfigurator) : void {
|
||||
$containerConfigurator->import(\Ssch\TYPO3Rector\Set\Typo3SetList::TYPO3_76);
|
||||
return static function (\Rector\Config\RectorConfig $rectorConfig) : void {
|
||||
$rectorConfig->sets([\Ssch\TYPO3Rector\Set\Typo3SetList::TYPO3_76]);
|
||||
};
|
||||
|
@ -3,10 +3,9 @@
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220420;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Ssch\TYPO3Rector\Set\Typo3LevelSetList;
|
||||
use Ssch\TYPO3Rector\Set\Typo3SetList;
|
||||
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
||||
return static function (\Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator $containerConfigurator) : void {
|
||||
$containerConfigurator->import(\Ssch\TYPO3Rector\Set\Typo3LevelSetList::UP_TO_TYPO3_7);
|
||||
$containerConfigurator->import(\Ssch\TYPO3Rector\Set\Typo3SetList::TYPO3_87);
|
||||
return static function (\Rector\Config\RectorConfig $rectorConfig) : void {
|
||||
$rectorConfig->sets([\Ssch\TYPO3Rector\Set\Typo3LevelSetList::UP_TO_TYPO3_7, \Ssch\TYPO3Rector\Set\Typo3SetList::TYPO3_87]);
|
||||
};
|
||||
|
@ -3,10 +3,9 @@
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220420;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Ssch\TYPO3Rector\Set\Typo3LevelSetList;
|
||||
use Ssch\TYPO3Rector\Set\Typo3SetList;
|
||||
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
||||
return static function (\Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator $containerConfigurator) : void {
|
||||
$containerConfigurator->import(\Ssch\TYPO3Rector\Set\Typo3LevelSetList::UP_TO_TYPO3_8);
|
||||
$containerConfigurator->import(\Ssch\TYPO3Rector\Set\Typo3SetList::TYPO3_95);
|
||||
return static function (\Rector\Config\RectorConfig $rectorConfig) : void {
|
||||
$rectorConfig->sets([\Ssch\TYPO3Rector\Set\Typo3LevelSetList::UP_TO_TYPO3_8, \Ssch\TYPO3Rector\Set\Typo3SetList::TYPO3_95]);
|
||||
};
|
||||
|
@ -3,10 +3,9 @@
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220420;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Rector\Renaming\Rector\Name\RenameClassRector;
|
||||
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
||||
return static function (\Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator $containerConfigurator) : void {
|
||||
$containerConfigurator->import(__DIR__ . '/../config.php');
|
||||
$services = $containerConfigurator->services();
|
||||
$services->set(\Rector\Renaming\Rector\Name\RenameClassRector::class)->configure(['Nimut\\TestingFramework\\TestCase\\UnitTestCase' => 'TYPO3\\TestingFramework\\Core\\Unit\\UnitTestCase', 'Nimut\\TestingFramework\\TestCase\\FunctionalTestCase' => 'TYPO3\\TestingFramework\\Core\\Functional\\FunctionalTestCase', 'Nimut\\TestingFramework\\TestCase\\ViewHelperBaseTestcase' => 'TYPO3\\TestingFramework\\Fluid\\Unit\\ViewHelpers\\ViewHelperBaseTestcase', 'Nimut\\TestingFramework\\MockObject\\AccessibleMockObjectInterface' => 'TYPO3\\TestingFramework\\Core\\AccessibleObjectInterface', 'Nimut\\TestingFramework\\Exception\\Exception' => 'TYPO3\\TestingFramework\\Core\\Exception']);
|
||||
return static function (\Rector\Config\RectorConfig $rectorConfig) : void {
|
||||
$rectorConfig->import(__DIR__ . '/../config.php');
|
||||
$rectorConfig->ruleWithConfiguration(\Rector\Renaming\Rector\Name\RenameClassRector::class, ['Nimut\\TestingFramework\\TestCase\\UnitTestCase' => 'TYPO3\\TestingFramework\\Core\\Unit\\UnitTestCase', 'Nimut\\TestingFramework\\TestCase\\FunctionalTestCase' => 'TYPO3\\TestingFramework\\Core\\Functional\\FunctionalTestCase', 'Nimut\\TestingFramework\\TestCase\\ViewHelperBaseTestcase' => 'TYPO3\\TestingFramework\\Fluid\\Unit\\ViewHelpers\\ViewHelperBaseTestcase', 'Nimut\\TestingFramework\\MockObject\\AccessibleMockObjectInterface' => 'TYPO3\\TestingFramework\\Core\\AccessibleObjectInterface', 'Nimut\\TestingFramework\\Exception\\Exception' => 'TYPO3\\TestingFramework\\Core\\Exception']);
|
||||
};
|
||||
|
@ -3,12 +3,11 @@
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220420;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Ssch\TYPO3Rector\Rector\v11\v5\RegisterIconToIconFileRector;
|
||||
use Ssch\TYPO3Rector\Rector\v11\v5\RegisterIconToIconFileRector\AddIconsToReturnRector;
|
||||
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
||||
return static function (\Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator $containerConfigurator) : void {
|
||||
$containerConfigurator->import(__DIR__ . '/../config.php');
|
||||
$services = $containerConfigurator->services();
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v11\v5\RegisterIconToIconFileRector\AddIconsToReturnRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v11\v5\RegisterIconToIconFileRector::class);
|
||||
return static function (\Rector\Config\RectorConfig $rectorConfig) : void {
|
||||
$rectorConfig->import(__DIR__ . '/../config.php');
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v11\v5\RegisterIconToIconFileRector\AddIconsToReturnRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v11\v5\RegisterIconToIconFileRector::class);
|
||||
};
|
||||
|
@ -3,8 +3,8 @@
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220420;
|
||||
|
||||
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
||||
return static function (\Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator $containerConfigurator) : void {
|
||||
$containerConfigurator->import(__DIR__ . '/../config.php');
|
||||
$containerConfigurator->import(__DIR__ . '/v8/*');
|
||||
use Rector\Config\RectorConfig;
|
||||
return static function (\Rector\Config\RectorConfig $rectorConfig) : void {
|
||||
$rectorConfig->import(__DIR__ . '/../config.php');
|
||||
$rectorConfig->import(__DIR__ . '/v8/*');
|
||||
};
|
||||
|
@ -3,8 +3,8 @@
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220420;
|
||||
|
||||
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
||||
return static function (\Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator $containerConfigurator) : void {
|
||||
$containerConfigurator->import(__DIR__ . '/../config.php');
|
||||
$containerConfigurator->import(__DIR__ . '/v9/*');
|
||||
use Rector\Config\RectorConfig;
|
||||
return static function (\Rector\Config\RectorConfig $rectorConfig) : void {
|
||||
$rectorConfig->import(__DIR__ . '/../config.php');
|
||||
$rectorConfig->import(__DIR__ . '/v9/*');
|
||||
};
|
||||
|
@ -3,12 +3,11 @@
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220420;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Ssch\TYPO3Rector\Rector\Extensions\solr\v8\SolrConnectionAddDocumentsToWriteServiceAddDocumentsRector;
|
||||
use Ssch\TYPO3Rector\Rector\Extensions\solr\v8\SolrSiteToSolrRepositoryRector;
|
||||
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
||||
return static function (\Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator $containerConfigurator) : void {
|
||||
$containerConfigurator->import(__DIR__ . '/../../config.php');
|
||||
$services = $containerConfigurator->services();
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\Extensions\solr\v8\SolrConnectionAddDocumentsToWriteServiceAddDocumentsRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\Extensions\solr\v8\SolrSiteToSolrRepositoryRector::class);
|
||||
return static function (\Rector\Config\RectorConfig $rectorConfig) : void {
|
||||
$rectorConfig->import(__DIR__ . '/../../config.php');
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\Extensions\solr\v8\SolrConnectionAddDocumentsToWriteServiceAddDocumentsRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\Extensions\solr\v8\SolrSiteToSolrRepositoryRector::class);
|
||||
};
|
||||
|
@ -3,12 +3,11 @@
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220420;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Rector\Renaming\Rector\Name\RenameClassRector;
|
||||
use Ssch\TYPO3Rector\Rector\Extensions\solr\v9\ApacheSolrDocumentToSolariumDocumentRector;
|
||||
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
||||
return static function (\Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator $containerConfigurator) : void {
|
||||
$containerConfigurator->import(__DIR__ . '/../../config.php');
|
||||
$services = $containerConfigurator->services();
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\Extensions\solr\v9\ApacheSolrDocumentToSolariumDocumentRector::class);
|
||||
$services->set(\Rector\Renaming\Rector\Name\RenameClassRector::class)->configure(['Apache_Solr_Document' => 'ApacheSolrForTypo3\\Solr\\System\\Solr\\Document\\Document', 'Apache_Solr_Response' => 'ApacheSolrForTypo3\\Solr\\System\\Solr\\ResponseAdapter']);
|
||||
return static function (\Rector\Config\RectorConfig $rectorConfig) : void {
|
||||
$rectorConfig->import(__DIR__ . '/../../config.php');
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\Extensions\solr\v9\ApacheSolrDocumentToSolariumDocumentRector::class);
|
||||
$rectorConfig->ruleWithConfiguration(\Rector\Renaming\Rector\Name\RenameClassRector::class, ['Apache_Solr_Document' => 'ApacheSolrForTypo3\\Solr\\System\\Solr\\Document\\Document', 'Apache_Solr_Response' => 'ApacheSolrForTypo3\\Solr\\System\\Solr\\ResponseAdapter']);
|
||||
};
|
||||
|
@ -3,7 +3,7 @@
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220420;
|
||||
|
||||
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
||||
return static function (\Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator $containerConfigurator) : void {
|
||||
$containerConfigurator->import(__DIR__ . '/v10/*');
|
||||
use Rector\Config\RectorConfig;
|
||||
return static function (\Rector\Config\RectorConfig $rectorConfig) : void {
|
||||
$rectorConfig->import(__DIR__ . '/v10/*');
|
||||
};
|
||||
|
@ -3,7 +3,7 @@
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220420;
|
||||
|
||||
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
||||
return static function (\Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator $containerConfigurator) : void {
|
||||
$containerConfigurator->import(__DIR__ . '/v11/*');
|
||||
use Rector\Config\RectorConfig;
|
||||
return static function (\Rector\Config\RectorConfig $rectorConfig) : void {
|
||||
$rectorConfig->import(__DIR__ . '/v11/*');
|
||||
};
|
||||
|
@ -3,7 +3,7 @@
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220420;
|
||||
|
||||
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
||||
return static function (\Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator $containerConfigurator) : void {
|
||||
$containerConfigurator->import(__DIR__ . '/v7/*');
|
||||
use Rector\Config\RectorConfig;
|
||||
return static function (\Rector\Config\RectorConfig $rectorConfig) : void {
|
||||
$rectorConfig->import(__DIR__ . '/v7/*');
|
||||
};
|
||||
|
@ -3,7 +3,7 @@
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220420;
|
||||
|
||||
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
||||
return static function (\Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator $containerConfigurator) : void {
|
||||
$containerConfigurator->import(__DIR__ . '/v8/*');
|
||||
use Rector\Config\RectorConfig;
|
||||
return static function (\Rector\Config\RectorConfig $rectorConfig) : void {
|
||||
$rectorConfig->import(__DIR__ . '/v8/*');
|
||||
};
|
||||
|
@ -3,7 +3,7 @@
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220420;
|
||||
|
||||
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
||||
return static function (\Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator $containerConfigurator) : void {
|
||||
$containerConfigurator->import(__DIR__ . '/v9/*');
|
||||
use Rector\Config\RectorConfig;
|
||||
return static function (\Rector\Config\RectorConfig $rectorConfig) : void {
|
||||
$rectorConfig->import(__DIR__ . '/v9/*');
|
||||
};
|
||||
|
@ -3,10 +3,9 @@
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220420;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Ssch\TYPO3Rector\Rector\Migrations\RenameClassMapAliasRector;
|
||||
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
||||
return static function (\Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator $containerConfigurator) : void {
|
||||
$containerConfigurator->import(__DIR__ . '/config.php');
|
||||
$services = $containerConfigurator->services();
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\Migrations\RenameClassMapAliasRector::class)->configure([__DIR__ . '/../Migrations/Code/ClassAliasMap.php']);
|
||||
return static function (\Rector\Config\RectorConfig $rectorConfig) : void {
|
||||
$rectorConfig->import(__DIR__ . '/config.php');
|
||||
$rectorConfig->ruleWithConfiguration(\Ssch\TYPO3Rector\Rector\Migrations\RenameClassMapAliasRector::class, [__DIR__ . '/../Migrations/Code/ClassAliasMap.php']);
|
||||
};
|
||||
|
15
vendor/ssch/typo3-rector/config/v10/tca-104.php
vendored
15
vendor/ssch/typo3-rector/config/v10/tca-104.php
vendored
@ -3,16 +3,15 @@
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220420;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Ssch\TYPO3Rector\Rector\v10\v0\RemoveSeliconFieldPathRector;
|
||||
use Ssch\TYPO3Rector\Rector\v10\v0\RemoveTcaOptionSetToDefaultOnCopyRector;
|
||||
use Ssch\TYPO3Rector\Rector\v10\v3\RemoveExcludeOnTransOrigPointerFieldRector;
|
||||
use Ssch\TYPO3Rector\Rector\v10\v3\RemoveShowRecordFieldListInsideInterfaceSectionRector;
|
||||
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
||||
return static function (\Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator $containerConfigurator) : void {
|
||||
$containerConfigurator->import(__DIR__ . '/../config.php');
|
||||
$services = $containerConfigurator->services();
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v10\v0\RemoveSeliconFieldPathRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v10\v0\RemoveTcaOptionSetToDefaultOnCopyRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v10\v3\RemoveExcludeOnTransOrigPointerFieldRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v10\v3\RemoveShowRecordFieldListInsideInterfaceSectionRector::class);
|
||||
return static function (\Rector\Config\RectorConfig $rectorConfig) : void {
|
||||
$rectorConfig->import(__DIR__ . '/../config.php');
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v10\v0\RemoveSeliconFieldPathRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v10\v0\RemoveTcaOptionSetToDefaultOnCopyRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v10\v3\RemoveExcludeOnTransOrigPointerFieldRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v10\v3\RemoveShowRecordFieldListInsideInterfaceSectionRector::class);
|
||||
};
|
||||
|
File diff suppressed because one or more lines are too long
@ -3,6 +3,7 @@
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220420;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Rector\Renaming\Rector\MethodCall\RenameMethodRector;
|
||||
use Rector\Renaming\ValueObject\MethodCallRename;
|
||||
use Rector\Transform\Rector\Assign\PropertyFetchToMethodCallRector;
|
||||
@ -10,16 +11,15 @@ use Rector\Transform\ValueObject\PropertyFetchToMethodCall;
|
||||
use Ssch\TYPO3Rector\Rector\v10\v1\BackendUtilityEditOnClickRector;
|
||||
use Ssch\TYPO3Rector\Rector\v10\v1\RefactorInternalPropertiesOfTSFERector;
|
||||
use Ssch\TYPO3Rector\Rector\v10\v1\RegisterPluginWithVendorNameRector;
|
||||
use Ssch\TYPO3Rector\Rector\v10\v1\RemoveEnableMultiSelectFilterTextfieldRector;
|
||||
use Ssch\TYPO3Rector\Rector\v10\v1\SendNotifyEmailToMailApiRector;
|
||||
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
||||
return static function (\Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator $containerConfigurator) : void {
|
||||
$containerConfigurator->import(__DIR__ . '/../config.php');
|
||||
$services = $containerConfigurator->services();
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v10\v1\RegisterPluginWithVendorNameRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v10\v1\BackendUtilityEditOnClickRector::class);
|
||||
$services->set(\Rector\Transform\Rector\Assign\PropertyFetchToMethodCallRector::class)->configure([new \Rector\Transform\ValueObject\PropertyFetchToMethodCall('TYPO3\\CMS\\Backend\\History\\RecordHistory', 'changeLog', 'getChangeLog', 'setChangelog', ['bla']), new \Rector\Transform\ValueObject\PropertyFetchToMethodCall('TYPO3\\CMS\\Backend\\History\\RecordHistory', 'lastHistoryEntry', 'getLastHistoryEntryNumber', null, [])]);
|
||||
$services->set(\Rector\Renaming\Rector\MethodCall\RenameMethodRector::class)->configure([new \Rector\Renaming\ValueObject\MethodCallRename('TYPO3\\CMS\\Backend\\History\\RecordHistory', 'createChangeLog', 'getChangeLog'), new \Rector\Renaming\ValueObject\MethodCallRename('TYPO3\\CMS\\Backend\\History\\RecordHistory', 'getElementData', 'getElementInformation'), new \Rector\Renaming\ValueObject\MethodCallRename('TYPO3\\CMS\\Backend\\History\\RecordHistory', 'createMultipleDiff', 'getDiff'), new \Rector\Renaming\ValueObject\MethodCallRename('TYPO3\\CMS\\Backend\\History\\RecordHistory', 'setLastHistoryEntry', 'setLastHistoryEntryNumber')]);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v10\v1\SendNotifyEmailToMailApiRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v10\v1\RefactorInternalPropertiesOfTSFERector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v10\v1\RemoveEnableMultiSelectFilterTextfieldRector::class);
|
||||
return static function (\Rector\Config\RectorConfig $rectorConfig) : void {
|
||||
$rectorConfig->import(__DIR__ . '/../config.php');
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v10\v1\RegisterPluginWithVendorNameRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v10\v1\BackendUtilityEditOnClickRector::class);
|
||||
$rectorConfig->ruleWithConfiguration(\Rector\Transform\Rector\Assign\PropertyFetchToMethodCallRector::class, [new \Rector\Transform\ValueObject\PropertyFetchToMethodCall('TYPO3\\CMS\\Backend\\History\\RecordHistory', 'changeLog', 'getChangeLog', 'setChangelog', ['bla']), new \Rector\Transform\ValueObject\PropertyFetchToMethodCall('TYPO3\\CMS\\Backend\\History\\RecordHistory', 'lastHistoryEntry', 'getLastHistoryEntryNumber', null, [])]);
|
||||
$rectorConfig->ruleWithConfiguration(\Rector\Renaming\Rector\MethodCall\RenameMethodRector::class, [new \Rector\Renaming\ValueObject\MethodCallRename('TYPO3\\CMS\\Backend\\History\\RecordHistory', 'createChangeLog', 'getChangeLog'), new \Rector\Renaming\ValueObject\MethodCallRename('TYPO3\\CMS\\Backend\\History\\RecordHistory', 'getElementData', 'getElementInformation'), new \Rector\Renaming\ValueObject\MethodCallRename('TYPO3\\CMS\\Backend\\History\\RecordHistory', 'createMultipleDiff', 'getDiff'), new \Rector\Renaming\ValueObject\MethodCallRename('TYPO3\\CMS\\Backend\\History\\RecordHistory', 'setLastHistoryEntry', 'setLastHistoryEntryNumber')]);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v10\v1\SendNotifyEmailToMailApiRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v10\v1\RefactorInternalPropertiesOfTSFERector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v10\v1\RemoveEnableMultiSelectFilterTextfieldRector::class);
|
||||
};
|
||||
|
@ -3,18 +3,17 @@
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220420;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Ssch\TYPO3Rector\Rector\v10\v2\ExcludeServiceKeysToArrayRector;
|
||||
use Ssch\TYPO3Rector\Rector\v10\v2\InjectEnvironmentServiceIfNeededInResponseRector;
|
||||
use Ssch\TYPO3Rector\Rector\v10\v2\MoveApplicationContextToEnvironmentApiRector;
|
||||
use Ssch\TYPO3Rector\Rector\v10\v2\UseActionControllerRector;
|
||||
use Ssch\TYPO3Rector\Rector\v10\v2\UseTypo3InformationForCopyRightNoticeRector;
|
||||
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
||||
return static function (\Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator $containerConfigurator) : void {
|
||||
$containerConfigurator->import(__DIR__ . '/../config.php');
|
||||
$services = $containerConfigurator->services();
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v10\v2\MoveApplicationContextToEnvironmentApiRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v10\v2\ExcludeServiceKeysToArrayRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v10\v2\UseActionControllerRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v10\v2\UseTypo3InformationForCopyRightNoticeRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v10\v2\InjectEnvironmentServiceIfNeededInResponseRector::class);
|
||||
return static function (\Rector\Config\RectorConfig $rectorConfig) : void {
|
||||
$rectorConfig->import(__DIR__ . '/../config.php');
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v10\v2\MoveApplicationContextToEnvironmentApiRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v10\v2\ExcludeServiceKeysToArrayRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v10\v2\UseActionControllerRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v10\v2\UseTypo3InformationForCopyRightNoticeRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v10\v2\InjectEnvironmentServiceIfNeededInResponseRector::class);
|
||||
};
|
||||
|
@ -3,17 +3,16 @@
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220420;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Rector\Renaming\Rector\MethodCall\RenameMethodRector;
|
||||
use Rector\Renaming\Rector\Name\RenameClassRector;
|
||||
use Rector\Renaming\ValueObject\MethodCallRename;
|
||||
use Ssch\TYPO3Rector\Rector\v10\v3\SubstituteResourceFactoryRector;
|
||||
use Ssch\TYPO3Rector\Rector\v10\v3\UseClassTypo3VersionRector;
|
||||
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
||||
return static function (\Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator $containerConfigurator) : void {
|
||||
$containerConfigurator->import(__DIR__ . '/../config.php');
|
||||
$services = $containerConfigurator->services();
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v10\v3\UseClassTypo3VersionRector::class);
|
||||
$services->set(\Rector\Renaming\Rector\MethodCall\RenameMethodRector::class)->configure([new \Rector\Renaming\ValueObject\MethodCallRename('TYPO3\\CMS\\Linkvalidator\\Repository\\BrokenLinkRepository', 'getNumberOfBrokenLinks', 'isLinkTargetBrokenLink')]);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v10\v3\SubstituteResourceFactoryRector::class);
|
||||
$services->set(\Rector\Renaming\Rector\Name\RenameClassRector::class)->configure(['TYPO3\\CMS\\Extbase\\Mvc\\Web\\Request' => 'TYPO3\\CMS\\Extbase\\Mvc\\Request', 'TYPO3\\CMS\\Extbase\\Mvc\\Web\\Response' => 'TYPO3\\CMS\\Extbase\\Mvc\\Response']);
|
||||
return static function (\Rector\Config\RectorConfig $rectorConfig) : void {
|
||||
$rectorConfig->import(__DIR__ . '/../config.php');
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v10\v3\UseClassTypo3VersionRector::class);
|
||||
$rectorConfig->ruleWithConfiguration(\Rector\Renaming\Rector\MethodCall\RenameMethodRector::class, [new \Rector\Renaming\ValueObject\MethodCallRename('TYPO3\\CMS\\Linkvalidator\\Repository\\BrokenLinkRepository', 'getNumberOfBrokenLinks', 'isLinkTargetBrokenLink')]);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v10\v3\SubstituteResourceFactoryRector::class);
|
||||
$rectorConfig->ruleWithConfiguration(\Rector\Renaming\Rector\Name\RenameClassRector::class, ['TYPO3\\CMS\\Extbase\\Mvc\\Web\\Request' => 'TYPO3\\CMS\\Extbase\\Mvc\\Request', 'TYPO3\\CMS\\Extbase\\Mvc\\Web\\Response' => 'TYPO3\\CMS\\Extbase\\Mvc\\Response']);
|
||||
};
|
||||
|
@ -3,20 +3,20 @@
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220420;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Rector\Renaming\Rector\StaticCall\RenameStaticMethodRector;
|
||||
use Rector\Renaming\ValueObject\RenameStaticMethod;
|
||||
use Ssch\TYPO3Rector\Rector\Migrations\RenameClassMapAliasRector;
|
||||
use Ssch\TYPO3Rector\Rector\v10\v4\SubstituteGeneralUtilityMethodsWithNativePhpFunctionsRector;
|
||||
use Ssch\TYPO3Rector\Rector\v10\v4\UnifiedFileNameValidatorRector;
|
||||
use Ssch\TYPO3Rector\Rector\v10\v4\UseFileGetContentsForGetUrlRector;
|
||||
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
||||
return static function (\Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator $containerConfigurator) : void {
|
||||
$containerConfigurator->import(__DIR__ . '/../config.php');
|
||||
$services = $containerConfigurator->services();
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v10\v4\UnifiedFileNameValidatorRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v10\v4\SubstituteGeneralUtilityMethodsWithNativePhpFunctionsRector::class);
|
||||
$services->set(\Rector\Renaming\Rector\StaticCall\RenameStaticMethodRector::class)->configure([new \Rector\Renaming\ValueObject\RenameStaticMethod('TYPO3\\CMS\\Core\\Utility\\GeneralUtility', 'isRunningOnCgiServerApi', 'TYPO3\\CMS\\Core\\Core\\Environment', 'isRunningOnCgiServer')]);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\Migrations\RenameClassMapAliasRector::class)->configure([__DIR__ . '/../../Migrations/TYPO3/10.4/typo3/sysext/backend/Migrations/Code/ClassAliasMap.php', __DIR__ . '/../../Migrations/TYPO3/10.4/typo3/sysext/core/Migrations/Code/ClassAliasMap.php']);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v10\v4\UseFileGetContentsForGetUrlRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v10\v4\UseIconsFromSubFolderInIconRegistryRector::class);
|
||||
use Ssch\TYPO3Rector\Rector\v10\v4\UseIconsFromSubFolderInIconRegistryRector;
|
||||
return static function (\Rector\Config\RectorConfig $rectorConfig) : void {
|
||||
$rectorConfig->import(__DIR__ . '/../config.php');
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v10\v4\UnifiedFileNameValidatorRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v10\v4\SubstituteGeneralUtilityMethodsWithNativePhpFunctionsRector::class);
|
||||
$rectorConfig->ruleWithConfiguration(\Rector\Renaming\Rector\StaticCall\RenameStaticMethodRector::class, [new \Rector\Renaming\ValueObject\RenameStaticMethod('TYPO3\\CMS\\Core\\Utility\\GeneralUtility', 'isRunningOnCgiServerApi', 'TYPO3\\CMS\\Core\\Core\\Environment', 'isRunningOnCgiServer')]);
|
||||
$rectorConfig->ruleWithConfiguration(\Ssch\TYPO3Rector\Rector\Migrations\RenameClassMapAliasRector::class, [__DIR__ . '/../../Migrations/TYPO3/10.4/typo3/sysext/backend/Migrations/Code/ClassAliasMap.php', __DIR__ . '/../../Migrations/TYPO3/10.4/typo3/sysext/core/Migrations/Code/ClassAliasMap.php']);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v10\v4\UseFileGetContentsForGetUrlRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v10\v4\UseIconsFromSubFolderInIconRegistryRector::class);
|
||||
};
|
||||
|
@ -3,10 +3,10 @@
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220420;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Ssch\TYPO3Rector\FileProcessor\TypoScript\Conditions\PIDupinRootlineConditionMatcher;
|
||||
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
||||
return static function (\Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator $containerConfigurator) : void {
|
||||
$containerConfigurator->import(__DIR__ . '/../config.php');
|
||||
$services = $containerConfigurator->services();
|
||||
return static function (\Rector\Config\RectorConfig $rectorConfig) : void {
|
||||
$rectorConfig->import(__DIR__ . '/../config.php');
|
||||
$services = $rectorConfig->services();
|
||||
$services->set(\Ssch\TYPO3Rector\FileProcessor\TypoScript\Conditions\PIDupinRootlineConditionMatcher::class);
|
||||
};
|
||||
|
@ -3,10 +3,9 @@
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220420;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Ssch\TYPO3Rector\Rector\v11\v4\MigrateFileFolderConfigurationRector;
|
||||
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
||||
return static function (\Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator $containerConfigurator) : void {
|
||||
$containerConfigurator->import(__DIR__ . '/../config.php');
|
||||
$services = $containerConfigurator->services();
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v11\v4\MigrateFileFolderConfigurationRector::class);
|
||||
return static function (\Rector\Config\RectorConfig $rectorConfig) : void {
|
||||
$rectorConfig->import(__DIR__ . '/../config.php');
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v11\v4\MigrateFileFolderConfigurationRector::class);
|
||||
};
|
||||
|
@ -3,6 +3,7 @@
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220420;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Rector\Transform\Rector\StaticCall\StaticCallToFuncCallRector;
|
||||
use Rector\Transform\ValueObject\StaticCallToFuncCall;
|
||||
use Ssch\TYPO3Rector\Rector\v11\v0\DateTimeAspectInsteadOfGlobalsExecTimeRector;
|
||||
@ -11,20 +12,19 @@ use Ssch\TYPO3Rector\Rector\v11\v0\ForwardResponseInsteadOfForwardMethodRector;
|
||||
use Ssch\TYPO3Rector\Rector\v11\v0\GetClickMenuOnIconTagParametersRector;
|
||||
use Ssch\TYPO3Rector\Rector\v11\v0\RemoveAddQueryStringMethodRector;
|
||||
use Ssch\TYPO3Rector\Rector\v11\v0\RemoveLanguageModeMethodsFromTypo3QuerySettingsRector;
|
||||
use Ssch\TYPO3Rector\Rector\v11\v0\ReplaceInjectAnnotationWithMethodRector;
|
||||
use Ssch\TYPO3Rector\Rector\v11\v0\SubstituteConstantsModeAndRequestTypeRector;
|
||||
use Ssch\TYPO3Rector\Rector\v11\v0\UniqueListFromStringUtilityRector;
|
||||
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
||||
return static function (\Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator $containerConfigurator) : void {
|
||||
$containerConfigurator->import(__DIR__ . '/../config.php');
|
||||
$services = $containerConfigurator->services();
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v11\v0\ForwardResponseInsteadOfForwardMethodRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v11\v0\DateTimeAspectInsteadOfGlobalsExecTimeRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v11\v0\UniqueListFromStringUtilityRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v11\v0\GetClickMenuOnIconTagParametersRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v11\v0\RemoveAddQueryStringMethodRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v11\v0\ExtbaseControllerActionsMustReturnResponseInterfaceRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v11\v0\SubstituteConstantsModeAndRequestTypeRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v11\v0\RemoveLanguageModeMethodsFromTypo3QuerySettingsRector::class);
|
||||
$services->set(\Rector\Transform\Rector\StaticCall\StaticCallToFuncCallRector::class)->configure([new \Rector\Transform\ValueObject\StaticCallToFuncCall('TYPO3\\CMS\\Core\\Utility\\StringUtility', 'beginsWith', 'str_starts_with'), new \Rector\Transform\ValueObject\StaticCallToFuncCall('TYPO3\\CMS\\Core\\Utility\\StringUtility', 'endsWith', 'str_ends_with'), new \Rector\Transform\ValueObject\StaticCallToFuncCall('TYPO3\\CMS\\Core\\Utility\\GeneralUtility', 'isFirstPartOfStr', 'str_starts_with')]);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v11\v0\ReplaceInjectAnnotationWithMethodRector::class);
|
||||
return static function (\Rector\Config\RectorConfig $rectorConfig) : void {
|
||||
$rectorConfig->import(__DIR__ . '/../config.php');
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v11\v0\ForwardResponseInsteadOfForwardMethodRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v11\v0\DateTimeAspectInsteadOfGlobalsExecTimeRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v11\v0\UniqueListFromStringUtilityRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v11\v0\GetClickMenuOnIconTagParametersRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v11\v0\RemoveAddQueryStringMethodRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v11\v0\ExtbaseControllerActionsMustReturnResponseInterfaceRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v11\v0\SubstituteConstantsModeAndRequestTypeRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v11\v0\RemoveLanguageModeMethodsFromTypo3QuerySettingsRector::class);
|
||||
$rectorConfig->ruleWithConfiguration(\Rector\Transform\Rector\StaticCall\StaticCallToFuncCallRector::class, [new \Rector\Transform\ValueObject\StaticCallToFuncCall('TYPO3\\CMS\\Core\\Utility\\StringUtility', 'beginsWith', 'str_starts_with'), new \Rector\Transform\ValueObject\StaticCallToFuncCall('TYPO3\\CMS\\Core\\Utility\\StringUtility', 'endsWith', 'str_ends_with'), new \Rector\Transform\ValueObject\StaticCallToFuncCall('TYPO3\\CMS\\Core\\Utility\\GeneralUtility', 'isFirstPartOfStr', 'str_starts_with')]);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v11\v0\ReplaceInjectAnnotationWithMethodRector::class);
|
||||
};
|
||||
|
@ -3,12 +3,15 @@
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220420;
|
||||
|
||||
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
||||
return static function (\Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator $containerConfigurator) : void {
|
||||
$containerConfigurator->import(__DIR__ . '/../config.php');
|
||||
$services = $containerConfigurator->services();
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v11\v3\SubstituteMethodRmFromListOfGeneralUtilityRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v11\v3\SwitchBehaviorOfArrayUtilityMethodsRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v11\v3\UseLanguageTypeForLanguageFieldColumnRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v11\v3\SubstituteExtbaseRequestGetBaseUriRector::class);
|
||||
use Rector\Config\RectorConfig;
|
||||
use Ssch\TYPO3Rector\Rector\v11\v3\SubstituteExtbaseRequestGetBaseUriRector;
|
||||
use Ssch\TYPO3Rector\Rector\v11\v3\SubstituteMethodRmFromListOfGeneralUtilityRector;
|
||||
use Ssch\TYPO3Rector\Rector\v11\v3\SwitchBehaviorOfArrayUtilityMethodsRector;
|
||||
use Ssch\TYPO3Rector\Rector\v11\v3\UseLanguageTypeForLanguageFieldColumnRector;
|
||||
return static function (\Rector\Config\RectorConfig $rectorConfig) : void {
|
||||
$rectorConfig->import(__DIR__ . '/../config.php');
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v11\v3\SubstituteMethodRmFromListOfGeneralUtilityRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v11\v3\SwitchBehaviorOfArrayUtilityMethodsRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v11\v3\UseLanguageTypeForLanguageFieldColumnRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v11\v3\SubstituteExtbaseRequestGetBaseUriRector::class);
|
||||
};
|
||||
|
@ -3,12 +3,13 @@
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220420;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Ssch\TYPO3Rector\Rector\v11\v4\AddSetConfigurationMethodToExceptionHandlerRector;
|
||||
use Ssch\TYPO3Rector\Rector\v11\v4\ProvideCObjViaMethodRector;
|
||||
use Ssch\TYPO3Rector\Rector\v11\v4\UseNativeFunctionInsteadOfGeneralUtilityShortMd5Rector;
|
||||
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
||||
return static function (\Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator $containerConfigurator) : void {
|
||||
$containerConfigurator->import(__DIR__ . '/../config.php');
|
||||
$services = $containerConfigurator->services();
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v11\v4\UseNativeFunctionInsteadOfGeneralUtilityShortMd5Rector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v11\v4\ProvideCObjViaMethodRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v11\v4\AddSetConfigurationMethodToExceptionHandlerRector::class);
|
||||
return static function (\Rector\Config\RectorConfig $rectorConfig) : void {
|
||||
$rectorConfig->import(__DIR__ . '/../config.php');
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v11\v4\UseNativeFunctionInsteadOfGeneralUtilityShortMd5Rector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v11\v4\ProvideCObjViaMethodRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v11\v4\AddSetConfigurationMethodToExceptionHandlerRector::class);
|
||||
};
|
||||
|
@ -3,20 +3,24 @@
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220420;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Rector\Renaming\Rector\StaticCall\RenameStaticMethodRector;
|
||||
use Rector\Renaming\ValueObject\RenameStaticMethod;
|
||||
use Ssch\TYPO3Rector\Rector\General\MethodGetInstanceToMakeInstanceCallRector;
|
||||
use Ssch\TYPO3Rector\Rector\v11\v5\FlexFormToolsArrayValueByPathRector;
|
||||
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
||||
return static function (\Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator $containerConfigurator) : void {
|
||||
$containerConfigurator->import(__DIR__ . '/../config.php');
|
||||
$services = $containerConfigurator->services();
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v11\v5\FlexFormToolsArrayValueByPathRector::class);
|
||||
$services->set(\Rector\Renaming\Rector\StaticCall\RenameStaticMethodRector::class)->configure([new \Rector\Renaming\ValueObject\RenameStaticMethod('TYPO3\\CMS\\Core\\Utility\\GeneralUtility', 'isAbsPath', 'TYPO3\\CMS\\Core\\Utility\\PathUtility', 'isAbsolutePath')]);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\General\MethodGetInstanceToMakeInstanceCallRector::class)->configure(['TYPO3\\CMS\\Core\\Resource\\Index\\ExtractorRegistry', 'TYPO3\\CMS\\Core\\Resource\\Index\\FileIndexRepository', 'TYPO3\\CMS\\Core\\Resource\\Index\\MetaDataRepository', 'TYPO3\\CMS\\Core\\Resource\\OnlineMedia\\Helpers\\OnlineMediaHelperRegistry', 'TYPO3\\CMS\\Core\\Resource\\Rendering\\RendererRegistry', 'TYPO3\\CMS\\Core\\Resource\\TextExtraction\\TextExtractorRegistry', 'TYPO3\\CMS\\Core\\Utility\\GeneralUtility', 'TYPO3\\CMS\\Form\\Service\\TranslationService', 'TYPO3\\CMS\\T3editor\\Registry\\AddonRegistry', 'TYPO3\\CMS\\T3editor\\Registry\\ModeRegistry']);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v11\v5\RemoveDefaultInternalTypeDBRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v11\v5\ReplaceTSFEATagParamsCallOnGlobalsRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v11\v5\HandleCObjRendererATagParamsMethodRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v11\v5\SubstituteBackendTemplateViewWithModuleTemplateRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v11\v5\SubstituteGetIconFactoryAndGetPageRendererFromModuleTemplateRector::class);
|
||||
use Ssch\TYPO3Rector\Rector\v11\v5\HandleCObjRendererATagParamsMethodRector;
|
||||
use Ssch\TYPO3Rector\Rector\v11\v5\RemoveDefaultInternalTypeDBRector;
|
||||
use Ssch\TYPO3Rector\Rector\v11\v5\ReplaceTSFEATagParamsCallOnGlobalsRector;
|
||||
use Ssch\TYPO3Rector\Rector\v11\v5\SubstituteBackendTemplateViewWithModuleTemplateRector;
|
||||
use Ssch\TYPO3Rector\Rector\v11\v5\SubstituteGetIconFactoryAndGetPageRendererFromModuleTemplateRector;
|
||||
return static function (\Rector\Config\RectorConfig $rectorConfig) : void {
|
||||
$rectorConfig->import(__DIR__ . '/../config.php');
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v11\v5\FlexFormToolsArrayValueByPathRector::class);
|
||||
$rectorConfig->ruleWithConfiguration(\Rector\Renaming\Rector\StaticCall\RenameStaticMethodRector::class, [new \Rector\Renaming\ValueObject\RenameStaticMethod('TYPO3\\CMS\\Core\\Utility\\GeneralUtility', 'isAbsPath', 'TYPO3\\CMS\\Core\\Utility\\PathUtility', 'isAbsolutePath')]);
|
||||
$rectorConfig->ruleWithConfiguration(\Ssch\TYPO3Rector\Rector\General\MethodGetInstanceToMakeInstanceCallRector::class, ['TYPO3\\CMS\\Core\\Resource\\Index\\ExtractorRegistry', 'TYPO3\\CMS\\Core\\Resource\\Index\\FileIndexRepository', 'TYPO3\\CMS\\Core\\Resource\\Index\\MetaDataRepository', 'TYPO3\\CMS\\Core\\Resource\\OnlineMedia\\Helpers\\OnlineMediaHelperRegistry', 'TYPO3\\CMS\\Core\\Resource\\Rendering\\RendererRegistry', 'TYPO3\\CMS\\Core\\Resource\\TextExtraction\\TextExtractorRegistry', 'TYPO3\\CMS\\Core\\Utility\\GeneralUtility', 'TYPO3\\CMS\\Form\\Service\\TranslationService', 'TYPO3\\CMS\\T3editor\\Registry\\AddonRegistry', 'TYPO3\\CMS\\T3editor\\Registry\\ModeRegistry']);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v11\v5\RemoveDefaultInternalTypeDBRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v11\v5\ReplaceTSFEATagParamsCallOnGlobalsRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v11\v5\HandleCObjRendererATagParamsMethodRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v11\v5\SubstituteBackendTemplateViewWithModuleTemplateRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v11\v5\SubstituteGetIconFactoryAndGetPageRendererFromModuleTemplateRector::class);
|
||||
};
|
||||
|
25
vendor/ssch/typo3-rector/config/v7/tca-76.php
vendored
25
vendor/ssch/typo3-rector/config/v7/tca-76.php
vendored
@ -3,6 +3,7 @@
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220420;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Ssch\TYPO3Rector\Rector\v7\v0\RemoveDivider2TabsConfigurationRector;
|
||||
use Ssch\TYPO3Rector\Rector\v7\v4\DropAdditionalPaletteRector;
|
||||
use Ssch\TYPO3Rector\Rector\v7\v4\MoveLanguageFilesFromRemovedCmsExtensionRector;
|
||||
@ -12,17 +13,15 @@ use Ssch\TYPO3Rector\Rector\v7\v6\AddRenderTypeToSelectFieldRector;
|
||||
use Ssch\TYPO3Rector\Rector\v7\v6\MigrateT3editorWizardToRenderTypeT3editorRector;
|
||||
use Ssch\TYPO3Rector\Rector\v7\v6\RemoveIconOptionForRenderTypeSelectRector;
|
||||
use Ssch\TYPO3Rector\Rector\v8\v4\SubstituteOldWizardIconsRector;
|
||||
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
||||
return static function (\Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator $containerConfigurator) : void {
|
||||
$containerConfigurator->import(__DIR__ . '/../config.php');
|
||||
$services = $containerConfigurator->services();
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v7\v0\RemoveDivider2TabsConfigurationRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v7\v4\MoveLanguageFilesFromRemovedCmsExtensionRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v7\v4\DropAdditionalPaletteRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v7\v5\RemoveIconsInOptionTagsRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v7\v5\UseExtPrefixForTcaIconFileRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v7\v6\MigrateT3editorWizardToRenderTypeT3editorRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v8\v4\SubstituteOldWizardIconsRector::class)->configure(['add.gif' => 'EXT:backend/Resources/Public/Images/FormFieldWizard/wizard_add.gif', 'link_popup.gif' => 'EXT:backend/Resources/Public/Images/FormFieldWizard/wizard_link.gif', 'wizard_rte2.gif' => 'EXT:backend/Resources/Public/Images/FormFieldWizard/wizard_rte.gif', 'wizard_table.gif' => 'EXT:backend/Resources/Public/Images/FormFieldWizard/wizard_table.gif', 'edit2.gif' => 'EXT:backend/Resources/Public/Images/FormFieldWizard/wizard_edit.gif', 'list.gif' => 'EXT:backend/Resources/Public/Images/FormFieldWizard/wizard_list.gif', 'wizard_forms.gif' => 'EXT:backend/Resources/Public/Images/FormFieldWizard/wizard_forms.gif']);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v7\v6\AddRenderTypeToSelectFieldRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v7\v6\RemoveIconOptionForRenderTypeSelectRector::class);
|
||||
return static function (\Rector\Config\RectorConfig $rectorConfig) : void {
|
||||
$rectorConfig->import(__DIR__ . '/../config.php');
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v7\v0\RemoveDivider2TabsConfigurationRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v7\v4\MoveLanguageFilesFromRemovedCmsExtensionRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v7\v4\DropAdditionalPaletteRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v7\v5\RemoveIconsInOptionTagsRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v7\v5\UseExtPrefixForTcaIconFileRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v7\v6\MigrateT3editorWizardToRenderTypeT3editorRector::class);
|
||||
$rectorConfig->ruleWithConfiguration(\Ssch\TYPO3Rector\Rector\v8\v4\SubstituteOldWizardIconsRector::class, ['add.gif' => 'EXT:backend/Resources/Public/Images/FormFieldWizard/wizard_add.gif', 'link_popup.gif' => 'EXT:backend/Resources/Public/Images/FormFieldWizard/wizard_link.gif', 'wizard_rte2.gif' => 'EXT:backend/Resources/Public/Images/FormFieldWizard/wizard_rte.gif', 'wizard_table.gif' => 'EXT:backend/Resources/Public/Images/FormFieldWizard/wizard_table.gif', 'edit2.gif' => 'EXT:backend/Resources/Public/Images/FormFieldWizard/wizard_edit.gif', 'list.gif' => 'EXT:backend/Resources/Public/Images/FormFieldWizard/wizard_list.gif', 'wizard_forms.gif' => 'EXT:backend/Resources/Public/Images/FormFieldWizard/wizard_forms.gif']);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v7\v6\AddRenderTypeToSelectFieldRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v7\v6\RemoveIconOptionForRenderTypeSelectRector::class);
|
||||
};
|
||||
|
19
vendor/ssch/typo3-rector/config/v7/typo3-70.php
vendored
19
vendor/ssch/typo3-rector/config/v7/typo3-70.php
vendored
@ -3,6 +3,7 @@
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220420;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Rector\Renaming\Rector\MethodCall\RenameMethodRector;
|
||||
use Rector\Renaming\Rector\Name\RenameClassRector;
|
||||
use Rector\Renaming\Rector\StaticCall\RenameStaticMethodRector;
|
||||
@ -11,14 +12,12 @@ use Rector\Renaming\ValueObject\RenameStaticMethod;
|
||||
use Ssch\TYPO3Rector\Rector\v7\v0\RemoveMethodCallConnectDbRector;
|
||||
use Ssch\TYPO3Rector\Rector\v7\v0\RemoveMethodCallLoadTcaRector;
|
||||
use Ssch\TYPO3Rector\Rector\v7\v0\TypeHandlingServiceToTypeHandlingUtilityRector;
|
||||
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
||||
return static function (\Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator $containerConfigurator) : void {
|
||||
$containerConfigurator->import(__DIR__ . '/../config.php');
|
||||
$services = $containerConfigurator->services();
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v7\v0\RemoveMethodCallConnectDbRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v7\v0\RemoveMethodCallLoadTcaRector::class);
|
||||
$services->set(\Rector\Renaming\Rector\Name\RenameClassRector::class)->configure(['TYPO3\\CMS\\Backend\\Template\\MediumDocumentTemplate' => 'TYPO3\\CMS\\Backend\\Template\\DocumentTemplate', 'TYPO3\\CMS\\Backend\\Template\\SmallDocumentTemplate' => 'TYPO3\\CMS\\Backend\\Template\\DocumentTemplate', 'TYPO3\\CMS\\Backend\\Template\\StandardDocumentTemplate' => 'TYPO3\\CMS\\Backend\\Template\\DocumentTemplate', 'TYPO3\\CMS\\Backend\\Template\\BigDocumentTemplate' => 'TYPO3\\CMS\\Backend\\Template\\DocumentTemplate']);
|
||||
$services->set(\Rector\Renaming\Rector\StaticCall\RenameStaticMethodRector::class)->configure([new \Rector\Renaming\ValueObject\RenameStaticMethod('TYPO3\\CMS\\Core\\Utility\\GeneralUtility', 'int_from_ver', 'TYPO3\\CMS\\Core\\Utility\\VersionNumberUtility', 'convertVersionNumberToInteger')]);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v7\v0\TypeHandlingServiceToTypeHandlingUtilityRector::class);
|
||||
$services->set(\Rector\Renaming\Rector\MethodCall\RenameMethodRector::class)->configure([new \Rector\Renaming\ValueObject\MethodCallRename('TYPO3\\CMS\\Extbase\\Persistence\\Generic\\Typo3QuerySettingsInterface', 'setSysLanguageUid', 'setLanguageUid'), new \Rector\Renaming\ValueObject\MethodCallRename('TYPO3\\CMS\\Extbase\\Persistence\\Generic\\Typo3QuerySettingsInterface', 'getSysLanguageUid', 'getLanguageUid'), new \Rector\Renaming\ValueObject\MethodCallRename('TYPO3\\CMS\\Extbase\\Object\\ObjectManagerInterface', 'create', 'get')]);
|
||||
return static function (\Rector\Config\RectorConfig $rectorConfig) : void {
|
||||
$rectorConfig->import(__DIR__ . '/../config.php');
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v7\v0\RemoveMethodCallConnectDbRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v7\v0\RemoveMethodCallLoadTcaRector::class);
|
||||
$rectorConfig->ruleWithConfiguration(\Rector\Renaming\Rector\Name\RenameClassRector::class, ['TYPO3\\CMS\\Backend\\Template\\MediumDocumentTemplate' => 'TYPO3\\CMS\\Backend\\Template\\DocumentTemplate', 'TYPO3\\CMS\\Backend\\Template\\SmallDocumentTemplate' => 'TYPO3\\CMS\\Backend\\Template\\DocumentTemplate', 'TYPO3\\CMS\\Backend\\Template\\StandardDocumentTemplate' => 'TYPO3\\CMS\\Backend\\Template\\DocumentTemplate', 'TYPO3\\CMS\\Backend\\Template\\BigDocumentTemplate' => 'TYPO3\\CMS\\Backend\\Template\\DocumentTemplate']);
|
||||
$rectorConfig->ruleWithConfiguration(\Rector\Renaming\Rector\StaticCall\RenameStaticMethodRector::class, [new \Rector\Renaming\ValueObject\RenameStaticMethod('TYPO3\\CMS\\Core\\Utility\\GeneralUtility', 'int_from_ver', 'TYPO3\\CMS\\Core\\Utility\\VersionNumberUtility', 'convertVersionNumberToInteger')]);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v7\v0\TypeHandlingServiceToTypeHandlingUtilityRector::class);
|
||||
$rectorConfig->ruleWithConfiguration(\Rector\Renaming\Rector\MethodCall\RenameMethodRector::class, [new \Rector\Renaming\ValueObject\MethodCallRename('TYPO3\\CMS\\Extbase\\Persistence\\Generic\\Typo3QuerySettingsInterface', 'setSysLanguageUid', 'setLanguageUid'), new \Rector\Renaming\ValueObject\MethodCallRename('TYPO3\\CMS\\Extbase\\Persistence\\Generic\\Typo3QuerySettingsInterface', 'getSysLanguageUid', 'getLanguageUid'), new \Rector\Renaming\ValueObject\MethodCallRename('TYPO3\\CMS\\Extbase\\Object\\ObjectManagerInterface', 'create', 'get')]);
|
||||
};
|
||||
|
@ -3,10 +3,9 @@
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220420;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Ssch\TYPO3Rector\Rector\v7\v1\GetTemporaryImageWithTextRector;
|
||||
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
||||
return static function (\Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator $containerConfigurator) : void {
|
||||
$containerConfigurator->import(__DIR__ . '/../config.php');
|
||||
$services = $containerConfigurator->services();
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v7\v1\GetTemporaryImageWithTextRector::class);
|
||||
return static function (\Rector\Config\RectorConfig $rectorConfig) : void {
|
||||
$rectorConfig->import(__DIR__ . '/../config.php');
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v7\v1\GetTemporaryImageWithTextRector::class);
|
||||
};
|
||||
|
@ -3,10 +3,9 @@
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220420;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Ssch\TYPO3Rector\Rector\v7\v4\InstantiatePageRendererExplicitlyRector;
|
||||
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
||||
return static function (\Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator $containerConfigurator) : void {
|
||||
$containerConfigurator->import(__DIR__ . '/../config.php');
|
||||
$services = $containerConfigurator->services();
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v7\v4\InstantiatePageRendererExplicitlyRector::class);
|
||||
return static function (\Rector\Config\RectorConfig $rectorConfig) : void {
|
||||
$rectorConfig->import(__DIR__ . '/../config.php');
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v7\v4\InstantiatePageRendererExplicitlyRector::class);
|
||||
};
|
||||
|
15
vendor/ssch/typo3-rector/config/v7/typo3-76.php
vendored
15
vendor/ssch/typo3-rector/config/v7/typo3-76.php
vendored
@ -3,19 +3,18 @@
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220420;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Rector\Renaming\Rector\ClassConstFetch\RenameClassConstFetchRector;
|
||||
use Rector\Renaming\ValueObject\RenameClassConstFetch;
|
||||
use Rector\Transform\Rector\MethodCall\MethodCallToStaticCallRector;
|
||||
use Rector\Transform\ValueObject\MethodCallToStaticCall;
|
||||
use Ssch\TYPO3Rector\Rector\v7\v6\RenamePiListBrowserResultsRector;
|
||||
use Ssch\TYPO3Rector\Rector\v7\v6\WrapClickMenuOnIconRector;
|
||||
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
||||
use RectorPrefix20220420\TYPO3\CMS\IndexedSearch\Utility\LikeWildcard;
|
||||
return static function (\Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator $containerConfigurator) : void {
|
||||
$containerConfigurator->import(__DIR__ . '/../config.php');
|
||||
$services = $containerConfigurator->services();
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v7\v6\RenamePiListBrowserResultsRector::class);
|
||||
$services->set(\Rector\Transform\Rector\MethodCall\MethodCallToStaticCallRector::class)->configure([new \Rector\Transform\ValueObject\MethodCallToStaticCall('TYPO3\\CMS\\Backend\\Template\\DocumentTemplate', 'issueCommand', 'TYPO3\\CMS\\Backend\\Utility\\BackendUtility', 'getLinkToDataHandlerAction')]);
|
||||
$services->set(\Rector\Renaming\Rector\ClassConstFetch\RenameClassConstFetchRector::class)->configure([new \Rector\Renaming\ValueObject\RenameClassConstFetch('TYPO3\\CMS\\IndexedSearch\\Controller\\SearchFormController', 'WILDCARD_LEFT', \RectorPrefix20220420\TYPO3\CMS\IndexedSearch\Utility\LikeWildcard::class . '::WILDCARD_LEFT'), new \Rector\Renaming\ValueObject\RenameClassConstFetch('TYPO3\\CMS\\IndexedSearch\\Controller\\SearchFormController', 'WILDCARD_RIGHT', \RectorPrefix20220420\TYPO3\CMS\IndexedSearch\Utility\LikeWildcard::class . '::WILDCARD_RIGHT'), new \Rector\Renaming\ValueObject\RenameClassConstFetch('TYPO3\\CMS\\IndexedSearch\\Domain\\Repository\\IndexSearchRepository', 'WILDCARD_LEFT', \RectorPrefix20220420\TYPO3\CMS\IndexedSearch\Utility\LikeWildcard::class . '::WILDCARD_LEFT'), new \Rector\Renaming\ValueObject\RenameClassConstFetch('TYPO3\\CMS\\IndexedSearch\\Domain\\Repository\\IndexSearchRepository', 'WILDCARD_RIGHT', \RectorPrefix20220420\TYPO3\CMS\IndexedSearch\Utility\LikeWildcard::class . '::WILDCARD_RIGHT')]);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v7\v6\WrapClickMenuOnIconRector::class);
|
||||
return static function (\Rector\Config\RectorConfig $rectorConfig) : void {
|
||||
$rectorConfig->import(__DIR__ . '/../config.php');
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v7\v6\RenamePiListBrowserResultsRector::class);
|
||||
$rectorConfig->ruleWithConfiguration(\Rector\Transform\Rector\MethodCall\MethodCallToStaticCallRector::class, [new \Rector\Transform\ValueObject\MethodCallToStaticCall('TYPO3\\CMS\\Backend\\Template\\DocumentTemplate', 'issueCommand', 'TYPO3\\CMS\\Backend\\Utility\\BackendUtility', 'getLinkToDataHandlerAction')]);
|
||||
$rectorConfig->ruleWithConfiguration(\Rector\Renaming\Rector\ClassConstFetch\RenameClassConstFetchRector::class, [new \Rector\Renaming\ValueObject\RenameClassConstFetch('TYPO3\\CMS\\IndexedSearch\\Controller\\SearchFormController', 'WILDCARD_LEFT', \RectorPrefix20220420\TYPO3\CMS\IndexedSearch\Utility\LikeWildcard::class . '::WILDCARD_LEFT'), new \Rector\Renaming\ValueObject\RenameClassConstFetch('TYPO3\\CMS\\IndexedSearch\\Controller\\SearchFormController', 'WILDCARD_RIGHT', \RectorPrefix20220420\TYPO3\CMS\IndexedSearch\Utility\LikeWildcard::class . '::WILDCARD_RIGHT'), new \Rector\Renaming\ValueObject\RenameClassConstFetch('TYPO3\\CMS\\IndexedSearch\\Domain\\Repository\\IndexSearchRepository', 'WILDCARD_LEFT', \RectorPrefix20220420\TYPO3\CMS\IndexedSearch\Utility\LikeWildcard::class . '::WILDCARD_LEFT'), new \Rector\Renaming\ValueObject\RenameClassConstFetch('TYPO3\\CMS\\IndexedSearch\\Domain\\Repository\\IndexSearchRepository', 'WILDCARD_RIGHT', \RectorPrefix20220420\TYPO3\CMS\IndexedSearch\Utility\LikeWildcard::class . '::WILDCARD_RIGHT')]);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v7\v6\WrapClickMenuOnIconRector::class);
|
||||
};
|
||||
|
45
vendor/ssch/typo3-rector/config/v8/tca-87.php
vendored
45
vendor/ssch/typo3-rector/config/v8/tca-87.php
vendored
@ -3,6 +3,7 @@
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220420;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Ssch\TYPO3Rector\Rector\v8\v3\RemovedTcaSelectTreeOptionsRector;
|
||||
use Ssch\TYPO3Rector\Rector\v8\v3\SoftReferencesFunctionalityRemovedRector;
|
||||
use Ssch\TYPO3Rector\Rector\v8\v4\RemoveOptionShowIfRteRector;
|
||||
@ -22,27 +23,25 @@ use Ssch\TYPO3Rector\Rector\v8\v6\RichtextFromDefaultExtrasToEnableRichtextRecto
|
||||
use Ssch\TYPO3Rector\Rector\v8\v7\MoveForeignTypesToOverrideChildTcaRector;
|
||||
use Ssch\TYPO3Rector\Rector\v8\v7\RemoveConfigMaxFromInputDateTimeFieldsRector;
|
||||
use Ssch\TYPO3Rector\Rector\v8\v7\RemoveLocalizationModeKeepIfNeededRector;
|
||||
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
||||
return static function (\Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator $containerConfigurator) : void {
|
||||
$containerConfigurator->import(__DIR__ . '/../config.php');
|
||||
$services = $containerConfigurator->services();
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v8\v3\RemovedTcaSelectTreeOptionsRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v8\v3\SoftReferencesFunctionalityRemovedRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v8\v4\SubstituteOldWizardIconsRector::class)->configure(['add.gif' => 'actions-add', 'link_popup.gif' => 'actions-wizard-link', 'wizard_rte2.gif' => 'actions-wizard-rte', 'wizard_link.gif' => 'actions-wizard-rte', 'wizard_table.gif' => 'content-table', 'edit2.gif' => 'actions-open', 'list.gif' => 'actions-system-list-open', 'wizard_forms.gif' => 'EXT:backend/Resources/Public/Images/FormFieldWizard/wizard_forms.gif', 'EXT:backend/Resources/Public/Images/FormFieldWizard/wizard_add.gif' => 'actions-add', 'EXT:backend/Resources/Public/Images/FormFieldWizard/wizard_table.gif' => 'content-table', 'EXT:backend/Resources/Public/Images/FormFieldWizard/wizard_edit.gif' => 'actions-open', 'EXT:backend/Resources/Public/Images/FormFieldWizard/wizard_list.gif' => 'actions-system-list-open', 'EXT:backend/Resources/Public/Images/FormFieldWizard/wizard_link.gif' => 'actions-wizard-link', 'EXT:backend/Resources/Public/Images/FormFieldWizard/wizard_rte.gif' => 'actions-wizard-rte']);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v8\v4\RemoveOptionShowIfRteRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v8\v5\RemoveOptionVersioningFollowPagesRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v8\v5\MoveLanguageFilesFromLocallangToResourcesRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v8\v5\RemoveSupportForTransForeignTableRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v8\v6\MoveRequestUpdateOptionFromControlToColumnsRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v8\v6\RichtextFromDefaultExtrasToEnableRichtextRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v8\v6\RefactorTCARector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v8\v6\MigrateSelectShowIconTableRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v8\v6\RemoveL10nModeNoCopyRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v8\v6\MigrateOptionsOfTypeGroupRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v8\v7\RemoveConfigMaxFromInputDateTimeFieldsRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v8\v7\RemoveLocalizationModeKeepIfNeededRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v8\v7\MoveForeignTypesToOverrideChildTcaRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v8\v6\MigrateLastPiecesOfDefaultExtrasRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v8\v6\MoveTypeGroupSuggestWizardToSuggestOptionsRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v8\v6\MigrateSpecialConfigurationAndRemoveShowItemStylePointerConfigRector::class);
|
||||
return static function (\Rector\Config\RectorConfig $rectorConfig) : void {
|
||||
$rectorConfig->import(__DIR__ . '/../config.php');
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v8\v3\RemovedTcaSelectTreeOptionsRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v8\v3\SoftReferencesFunctionalityRemovedRector::class);
|
||||
$rectorConfig->ruleWithConfiguration(\Ssch\TYPO3Rector\Rector\v8\v4\SubstituteOldWizardIconsRector::class, ['add.gif' => 'actions-add', 'link_popup.gif' => 'actions-wizard-link', 'wizard_rte2.gif' => 'actions-wizard-rte', 'wizard_link.gif' => 'actions-wizard-rte', 'wizard_table.gif' => 'content-table', 'edit2.gif' => 'actions-open', 'list.gif' => 'actions-system-list-open', 'wizard_forms.gif' => 'EXT:backend/Resources/Public/Images/FormFieldWizard/wizard_forms.gif', 'EXT:backend/Resources/Public/Images/FormFieldWizard/wizard_add.gif' => 'actions-add', 'EXT:backend/Resources/Public/Images/FormFieldWizard/wizard_table.gif' => 'content-table', 'EXT:backend/Resources/Public/Images/FormFieldWizard/wizard_edit.gif' => 'actions-open', 'EXT:backend/Resources/Public/Images/FormFieldWizard/wizard_list.gif' => 'actions-system-list-open', 'EXT:backend/Resources/Public/Images/FormFieldWizard/wizard_link.gif' => 'actions-wizard-link', 'EXT:backend/Resources/Public/Images/FormFieldWizard/wizard_rte.gif' => 'actions-wizard-rte']);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v8\v4\RemoveOptionShowIfRteRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v8\v5\RemoveOptionVersioningFollowPagesRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v8\v5\MoveLanguageFilesFromLocallangToResourcesRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v8\v5\RemoveSupportForTransForeignTableRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v8\v6\MoveRequestUpdateOptionFromControlToColumnsRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v8\v6\RichtextFromDefaultExtrasToEnableRichtextRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v8\v6\RefactorTCARector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v8\v6\MigrateSelectShowIconTableRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v8\v6\RemoveL10nModeNoCopyRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v8\v6\MigrateOptionsOfTypeGroupRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v8\v7\RemoveConfigMaxFromInputDateTimeFieldsRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v8\v7\RemoveLocalizationModeKeepIfNeededRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v8\v7\MoveForeignTypesToOverrideChildTcaRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v8\v6\MigrateLastPiecesOfDefaultExtrasRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v8\v6\MoveTypeGroupSuggestWizardToSuggestOptionsRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v8\v6\MigrateSpecialConfigurationAndRemoveShowItemStylePointerConfigRector::class);
|
||||
};
|
||||
|
51
vendor/ssch/typo3-rector/config/v8/typo3-80.php
vendored
51
vendor/ssch/typo3-rector/config/v8/typo3-80.php
vendored
@ -3,6 +3,7 @@
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220420;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Rector\Renaming\Rector\MethodCall\RenameMethodRector;
|
||||
use Rector\Renaming\Rector\StaticCall\RenameStaticMethodRector;
|
||||
use Rector\Renaming\ValueObject\MethodCallRename;
|
||||
@ -26,30 +27,28 @@ use Ssch\TYPO3Rector\Rector\v8\v0\RequireMethodsToNativeFunctionsRector;
|
||||
use Ssch\TYPO3Rector\Rector\v8\v0\RteHtmlParserRector;
|
||||
use Ssch\TYPO3Rector\Rector\v8\v0\TimeTrackerGlobalsToSingletonRector;
|
||||
use Ssch\TYPO3Rector\Rector\v8\v0\TimeTrackerInsteadOfNullTimeTrackerRector;
|
||||
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
||||
return static function (\Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator $containerConfigurator) : void {
|
||||
$containerConfigurator->import(__DIR__ . '/../config.php');
|
||||
$services = $containerConfigurator->services();
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v8\v0\ChangeMethodCallsForStandaloneViewRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v8\v0\RefactorRemovedMethodsFromGeneralUtilityRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v8\v0\RefactorRemovedMethodsFromContentObjectRendererRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v8\v0\RemovePropertyUserAuthenticationRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v8\v0\TimeTrackerGlobalsToSingletonRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v8\v0\RemoveWakeupCallFromEntityRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v8\v0\RteHtmlParserRector::class);
|
||||
$services->set(\Rector\Renaming\Rector\MethodCall\RenameMethodRector::class)->configure([new \Rector\Renaming\ValueObject\MethodCallRename('TYPO3\\CMS\\Recordlist\\RecordList', 'printContent', 'mainAction'), new \Rector\Renaming\ValueObject\MethodCallRename('TYPO3\\CMS\\Recordlist\\Controller\\ElementBrowserFramesetController', 'printContent', 'mainAction'), new \Rector\Renaming\ValueObject\MethodCallRename('TYPO3\\CMS\\Rtehtmlarea\\Controller\\UserElementsController', 'main', 'main_user'), new \Rector\Renaming\ValueObject\MethodCallRename('TYPO3\\CMS\\Rtehtmlarea\\Controller\\UserElementsController', 'printContent', 'mainAction'), new \Rector\Renaming\ValueObject\MethodCallRename('TYPO3\\CMS\\Rtehtmlarea\\Controller\\ParseHtmlController', 'main', 'main_parse_html'), new \Rector\Renaming\ValueObject\MethodCallRename('TYPO3\\CMS\\Rtehtmlarea\\Controller\\ParseHtmlController', 'printContent', 'mainAction')]);
|
||||
$services->set(\Rector\Renaming\Rector\StaticCall\RenameStaticMethodRector::class)->configure([new \Rector\Renaming\ValueObject\RenameStaticMethod('TYPO3\\CMS\\Extbase\\Utility\\ExtensionUtility', 'configureModule', 'TYPO3\\CMS\\Core\\Utility\\ExtensionManagementUtility', 'configureModule'), new \Rector\Renaming\ValueObject\RenameStaticMethod('TYPO3\\CMS\\Core\\TypoScript\\TemplateService', 'sortedKeyList', 'TYPO3\\CMS\\Core\\Utility\\ArrayUtility', 'filterAndSortByNumericKeys'), new \Rector\Renaming\ValueObject\RenameStaticMethod('TYPO3\\CMS\\Core\\Utility\\GeneralUtility', 'imageMagickCommand', 'TYPO3\\CMS\\Core\\Utility\\CommandUtility', 'imageMagickCommand')]);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v8\v0\PrependAbsolutePathToGetFileAbsFileNameRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v8\v0\RefactorRemovedMarkerMethodsFromHtmlParserRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v8\v0\RemoveRteHtmlParserEvalWriteFileRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v8\v0\RandomMethodsToRandomClassRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v8\v0\RequireMethodsToNativeFunctionsRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v8\v0\GetPreferredClientLanguageRector::class);
|
||||
$services->set(\Rector\Renaming\Rector\MethodCall\RenameMethodRector::class)->configure([new \Rector\Renaming\ValueObject\MethodCallRename('TYPO3\\CMS\\Fluid\\Core\\Rendering\\RenderingContext', 'getTemplateVariableContainer', 'getVariableProvider')]);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v8\v0\TimeTrackerInsteadOfNullTimeTrackerRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v8\v0\RemoveCharsetConverterParametersRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v8\v0\GetFileAbsFileNameRemoveDeprecatedArgumentsRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v8\v0\RemoveLangCsConvObjAndParserFactoryRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v8\v0\RenderCharsetDefaultsToUtf8Rector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\FileProcessor\TypoScript\Rector\AdditionalHeadersToArrayTypoScriptRector::class);
|
||||
return static function (\Rector\Config\RectorConfig $rectorConfig) : void {
|
||||
$rectorConfig->import(__DIR__ . '/../config.php');
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v8\v0\ChangeMethodCallsForStandaloneViewRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v8\v0\RefactorRemovedMethodsFromGeneralUtilityRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v8\v0\RefactorRemovedMethodsFromContentObjectRendererRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v8\v0\RemovePropertyUserAuthenticationRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v8\v0\TimeTrackerGlobalsToSingletonRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v8\v0\RemoveWakeupCallFromEntityRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v8\v0\RteHtmlParserRector::class);
|
||||
$rectorConfig->ruleWithConfiguration(\Rector\Renaming\Rector\MethodCall\RenameMethodRector::class, [new \Rector\Renaming\ValueObject\MethodCallRename('TYPO3\\CMS\\Recordlist\\RecordList', 'printContent', 'mainAction'), new \Rector\Renaming\ValueObject\MethodCallRename('TYPO3\\CMS\\Recordlist\\Controller\\ElementBrowserFramesetController', 'printContent', 'mainAction'), new \Rector\Renaming\ValueObject\MethodCallRename('TYPO3\\CMS\\Rtehtmlarea\\Controller\\UserElementsController', 'main', 'main_user'), new \Rector\Renaming\ValueObject\MethodCallRename('TYPO3\\CMS\\Rtehtmlarea\\Controller\\UserElementsController', 'printContent', 'mainAction'), new \Rector\Renaming\ValueObject\MethodCallRename('TYPO3\\CMS\\Rtehtmlarea\\Controller\\ParseHtmlController', 'main', 'main_parse_html'), new \Rector\Renaming\ValueObject\MethodCallRename('TYPO3\\CMS\\Rtehtmlarea\\Controller\\ParseHtmlController', 'printContent', 'mainAction')]);
|
||||
$rectorConfig->ruleWithConfiguration(\Rector\Renaming\Rector\StaticCall\RenameStaticMethodRector::class, [new \Rector\Renaming\ValueObject\RenameStaticMethod('TYPO3\\CMS\\Extbase\\Utility\\ExtensionUtility', 'configureModule', 'TYPO3\\CMS\\Core\\Utility\\ExtensionManagementUtility', 'configureModule'), new \Rector\Renaming\ValueObject\RenameStaticMethod('TYPO3\\CMS\\Core\\TypoScript\\TemplateService', 'sortedKeyList', 'TYPO3\\CMS\\Core\\Utility\\ArrayUtility', 'filterAndSortByNumericKeys'), new \Rector\Renaming\ValueObject\RenameStaticMethod('TYPO3\\CMS\\Core\\Utility\\GeneralUtility', 'imageMagickCommand', 'TYPO3\\CMS\\Core\\Utility\\CommandUtility', 'imageMagickCommand')]);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v8\v0\PrependAbsolutePathToGetFileAbsFileNameRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v8\v0\RefactorRemovedMarkerMethodsFromHtmlParserRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v8\v0\RemoveRteHtmlParserEvalWriteFileRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v8\v0\RandomMethodsToRandomClassRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v8\v0\RequireMethodsToNativeFunctionsRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v8\v0\GetPreferredClientLanguageRector::class);
|
||||
$rectorConfig->ruleWithConfiguration(\Rector\Renaming\Rector\MethodCall\RenameMethodRector::class, [new \Rector\Renaming\ValueObject\MethodCallRename('TYPO3\\CMS\\Fluid\\Core\\Rendering\\RenderingContext', 'getTemplateVariableContainer', 'getVariableProvider')]);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v8\v0\TimeTrackerInsteadOfNullTimeTrackerRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v8\v0\RemoveCharsetConverterParametersRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v8\v0\GetFileAbsFileNameRemoveDeprecatedArgumentsRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v8\v0\RemoveLangCsConvObjAndParserFactoryRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v8\v0\RenderCharsetDefaultsToUtf8Rector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\FileProcessor\TypoScript\Rector\AdditionalHeadersToArrayTypoScriptRector::class);
|
||||
};
|
||||
|
17
vendor/ssch/typo3-rector/config/v8/typo3-81.php
vendored
17
vendor/ssch/typo3-rector/config/v8/typo3-81.php
vendored
@ -3,18 +3,17 @@
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220420;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Ssch\TYPO3Rector\Rector\v8\v1\Array2XmlCsToArray2XmlRector;
|
||||
use Ssch\TYPO3Rector\Rector\v8\v1\GeneralUtilityToUpperAndLowerRector;
|
||||
use Ssch\TYPO3Rector\Rector\v8\v1\RefactorDbConstantsRector;
|
||||
use Ssch\TYPO3Rector\Rector\v8\v1\RefactorVariousGeneralUtilityMethodsRector;
|
||||
use Ssch\TYPO3Rector\Rector\v8\v1\TypoScriptFrontendControllerCharsetConverterRector;
|
||||
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
||||
return static function (\Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator $containerConfigurator) : void {
|
||||
$containerConfigurator->import(__DIR__ . '/../config.php');
|
||||
$services = $containerConfigurator->services();
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v8\v1\RefactorDbConstantsRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v8\v1\Array2XmlCsToArray2XmlRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v8\v1\TypoScriptFrontendControllerCharsetConverterRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v8\v1\GeneralUtilityToUpperAndLowerRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v8\v1\RefactorVariousGeneralUtilityMethodsRector::class);
|
||||
return static function (\Rector\Config\RectorConfig $rectorConfig) : void {
|
||||
$rectorConfig->import(__DIR__ . '/../config.php');
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v8\v1\RefactorDbConstantsRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v8\v1\Array2XmlCsToArray2XmlRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v8\v1\TypoScriptFrontendControllerCharsetConverterRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v8\v1\GeneralUtilityToUpperAndLowerRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v8\v1\RefactorVariousGeneralUtilityMethodsRector::class);
|
||||
};
|
||||
|
@ -3,10 +3,9 @@
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220420;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Ssch\TYPO3Rector\Rector\v8\v2\UseHtmlSpecialCharsDirectlyForTranslationRector;
|
||||
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
||||
return static function (\Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator $containerConfigurator) : void {
|
||||
$containerConfigurator->import(__DIR__ . '/../config.php');
|
||||
$services = $containerConfigurator->services();
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v8\v2\UseHtmlSpecialCharsDirectlyForTranslationRector::class);
|
||||
return static function (\Rector\Config\RectorConfig $rectorConfig) : void {
|
||||
$rectorConfig->import(__DIR__ . '/../config.php');
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v8\v2\UseHtmlSpecialCharsDirectlyForTranslationRector::class);
|
||||
};
|
||||
|
14
vendor/ssch/typo3-rector/config/v8/typo3-83.php
vendored
14
vendor/ssch/typo3-rector/config/v8/typo3-83.php
vendored
@ -3,16 +3,16 @@
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220420;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Ssch\TYPO3Rector\FileProcessor\Resources\Icons\IconsFileProcessor;
|
||||
use Ssch\TYPO3Rector\FileProcessor\Resources\Icons\Rector\IconsRector;
|
||||
use Ssch\TYPO3Rector\Rector\v8\v3\RefactorMethodFileContentRector;
|
||||
use Ssch\TYPO3Rector\Rector\v8\v3\RefactorQueryViewTableWrapRector;
|
||||
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
||||
return static function (\Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator $containerConfigurator) : void {
|
||||
$containerConfigurator->import(__DIR__ . '/../config.php');
|
||||
$services = $containerConfigurator->services();
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v8\v3\RefactorMethodFileContentRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v8\v3\RefactorQueryViewTableWrapRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\FileProcessor\Resources\Icons\Rector\IconsRector::class);
|
||||
return static function (\Rector\Config\RectorConfig $rectorConfig) : void {
|
||||
$rectorConfig->import(__DIR__ . '/../config.php');
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v8\v3\RefactorMethodFileContentRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v8\v3\RefactorQueryViewTableWrapRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\FileProcessor\Resources\Icons\Rector\IconsRector::class);
|
||||
$services = $rectorConfig->services();
|
||||
$services->set(\Ssch\TYPO3Rector\FileProcessor\Resources\Icons\IconsFileProcessor::class)->autowire();
|
||||
};
|
||||
|
13
vendor/ssch/typo3-rector/config/v8/typo3-84.php
vendored
13
vendor/ssch/typo3-rector/config/v8/typo3-84.php
vendored
@ -3,16 +3,15 @@
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220420;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Rector\Renaming\Rector\MethodCall\RenameMethodRector;
|
||||
use Rector\Renaming\ValueObject\MethodCallRename;
|
||||
use Ssch\TYPO3Rector\Rector\v8\v4\ExtensionManagementUtilityExtRelPathRector;
|
||||
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
||||
return static function (\Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator $containerConfigurator) : void {
|
||||
$containerConfigurator->import(__DIR__ . '/../config.php');
|
||||
$services = $containerConfigurator->services();
|
||||
return static function (\Rector\Config\RectorConfig $rectorConfig) : void {
|
||||
$rectorConfig->import(__DIR__ . '/../config.php');
|
||||
// @see https://docs.typo3.org/c/typo3/cms-core/master/en-us/Changelog/8.4/Deprecation-75363-DeprecateFormResultCompilerJStop.html
|
||||
$services->set(\Rector\Renaming\Rector\MethodCall\RenameMethodRector::class)->configure([new \Rector\Renaming\ValueObject\MethodCallRename('TYPO3\\CMS\\Backend\\Routing\\FormResultCompiler', 'JStop', 'addCssFiles')]);
|
||||
$rectorConfig->ruleWithConfiguration(\Rector\Renaming\Rector\MethodCall\RenameMethodRector::class, [new \Rector\Renaming\ValueObject\MethodCallRename('TYPO3\\CMS\\Backend\\Routing\\FormResultCompiler', 'JStop', 'addCssFiles')]);
|
||||
// @see https://docs.typo3.org/c/typo3/cms-core/master/en-us/Changelog/8.4/Deprecation-77826-RTEHtmlAreaSpellcheckerEntrypoint.html
|
||||
$services->set(\Rector\Renaming\Rector\MethodCall\RenameMethodRector::class)->configure([new \Rector\Renaming\ValueObject\MethodCallRename('TYPO3\\CMS\\Saltedpasswords\\Salt\\SpellCheckingController', 'main', 'processRequest')]);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v8\v4\ExtensionManagementUtilityExtRelPathRector::class);
|
||||
$rectorConfig->ruleWithConfiguration(\Rector\Renaming\Rector\MethodCall\RenameMethodRector::class, [new \Rector\Renaming\ValueObject\MethodCallRename('TYPO3\\CMS\\Saltedpasswords\\Salt\\SpellCheckingController', 'main', 'processRequest')]);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v8\v4\ExtensionManagementUtilityExtRelPathRector::class);
|
||||
};
|
||||
|
13
vendor/ssch/typo3-rector/config/v8/typo3-85.php
vendored
13
vendor/ssch/typo3-rector/config/v8/typo3-85.php
vendored
@ -3,16 +3,15 @@
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220420;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Rector\Renaming\Rector\MethodCall\RenameMethodRector;
|
||||
use Rector\Renaming\Rector\StaticCall\RenameStaticMethodRector;
|
||||
use Rector\Renaming\ValueObject\MethodCallRename;
|
||||
use Rector\Renaming\ValueObject\RenameStaticMethod;
|
||||
use Ssch\TYPO3Rector\Rector\v8\v5\CharsetConverterToMultiByteFunctionsRector;
|
||||
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
||||
return static function (\Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator $containerConfigurator) : void {
|
||||
$containerConfigurator->import(__DIR__ . '/../config.php');
|
||||
$services = $containerConfigurator->services();
|
||||
$services->set(\Rector\Renaming\Rector\MethodCall\RenameMethodRector::class)->configure([new \Rector\Renaming\ValueObject\MethodCallRename('TYPO3\\CMS\\Backend\\Clipboard\\ClipBoard', 'printContentFromTab', 'getContentFromTab')]);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v8\v5\CharsetConverterToMultiByteFunctionsRector::class);
|
||||
$services->set(\Rector\Renaming\Rector\StaticCall\RenameStaticMethodRector::class)->configure([new \Rector\Renaming\ValueObject\RenameStaticMethod('TYPO3\\CMS\\Extbase\\Utility\\ArrayUtility', 'integerExplode', 'TYPO3\\CMS\\Core\\Utility\\GeneralUtility', 'intExplode'), new \Rector\Renaming\ValueObject\RenameStaticMethod('TYPO3\\CMS\\Extbase\\Utility\\ArrayUtility', 'trimExplode', 'TYPO3\\CMS\\Core\\Utility\\GeneralUtility', 'trimExplode'), new \Rector\Renaming\ValueObject\RenameStaticMethod('TYPO3\\CMS\\Extbase\\Utility\\ArrayUtility', 'getValueByPath', 'TYPO3\\CMS\\Core\\Utility\\ArrayUtility', 'getValueByPath'), new \Rector\Renaming\ValueObject\RenameStaticMethod('TYPO3\\CMS\\Extbase\\Utility\\ArrayUtility', 'setValueByPath', 'TYPO3\\CMS\\Core\\Utility\\ArrayUtility', 'setValueByPath'), new \Rector\Renaming\ValueObject\RenameStaticMethod('TYPO3\\CMS\\Extbase\\Utility\\ArrayUtility', 'unsetValueByPath', 'TYPO3\\CMS\\Core\\Utility\\ArrayUtility', 'removeByPath'), new \Rector\Renaming\ValueObject\RenameStaticMethod('TYPO3\\CMS\\Extbase\\Utility\\ArrayUtility', 'sortArrayWithIntegerKeys', 'TYPO3\\CMS\\Core\\Utility\\ArrayUtility', 'sortArrayWithIntegerKeys')]);
|
||||
return static function (\Rector\Config\RectorConfig $rectorConfig) : void {
|
||||
$rectorConfig->import(__DIR__ . '/../config.php');
|
||||
$rectorConfig->ruleWithConfiguration(\Rector\Renaming\Rector\MethodCall\RenameMethodRector::class, [new \Rector\Renaming\ValueObject\MethodCallRename('TYPO3\\CMS\\Backend\\Clipboard\\ClipBoard', 'printContentFromTab', 'getContentFromTab')]);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v8\v5\CharsetConverterToMultiByteFunctionsRector::class);
|
||||
$rectorConfig->ruleWithConfiguration(\Rector\Renaming\Rector\StaticCall\RenameStaticMethodRector::class, [new \Rector\Renaming\ValueObject\RenameStaticMethod('TYPO3\\CMS\\Extbase\\Utility\\ArrayUtility', 'integerExplode', 'TYPO3\\CMS\\Core\\Utility\\GeneralUtility', 'intExplode'), new \Rector\Renaming\ValueObject\RenameStaticMethod('TYPO3\\CMS\\Extbase\\Utility\\ArrayUtility', 'trimExplode', 'TYPO3\\CMS\\Core\\Utility\\GeneralUtility', 'trimExplode'), new \Rector\Renaming\ValueObject\RenameStaticMethod('TYPO3\\CMS\\Extbase\\Utility\\ArrayUtility', 'getValueByPath', 'TYPO3\\CMS\\Core\\Utility\\ArrayUtility', 'getValueByPath'), new \Rector\Renaming\ValueObject\RenameStaticMethod('TYPO3\\CMS\\Extbase\\Utility\\ArrayUtility', 'setValueByPath', 'TYPO3\\CMS\\Core\\Utility\\ArrayUtility', 'setValueByPath'), new \Rector\Renaming\ValueObject\RenameStaticMethod('TYPO3\\CMS\\Extbase\\Utility\\ArrayUtility', 'unsetValueByPath', 'TYPO3\\CMS\\Core\\Utility\\ArrayUtility', 'removeByPath'), new \Rector\Renaming\ValueObject\RenameStaticMethod('TYPO3\\CMS\\Extbase\\Utility\\ArrayUtility', 'sortArrayWithIntegerKeys', 'TYPO3\\CMS\\Core\\Utility\\ArrayUtility', 'sortArrayWithIntegerKeys')]);
|
||||
};
|
||||
|
@ -3,10 +3,9 @@
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220420;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Rector\Renaming\Rector\Name\RenameClassRector;
|
||||
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
||||
return static function (\Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator $containerConfigurator) : void {
|
||||
$containerConfigurator->import(__DIR__ . '/../config.php');
|
||||
$services = $containerConfigurator->services();
|
||||
$services->set(\Rector\Renaming\Rector\Name\RenameClassRector::class)->configure(['TYPO3\\CMS\\Core\\Tests\\UnitTestCase' => 'TYPO3\\TestingFramework\\Core\\Unit\\UnitTestCase', 'TYPO3\\CMS\\Core\\Tests\\FunctionalTestCase' => 'TYPO3\\TestingFramework\\Core\\Functional\\FunctionalTestCase']);
|
||||
return static function (\Rector\Config\RectorConfig $rectorConfig) : void {
|
||||
$rectorConfig->import(__DIR__ . '/../config.php');
|
||||
$rectorConfig->ruleWithConfiguration(\Rector\Renaming\Rector\Name\RenameClassRector::class, ['TYPO3\\CMS\\Core\\Tests\\UnitTestCase' => 'TYPO3\\TestingFramework\\Core\\Unit\\UnitTestCase', 'TYPO3\\CMS\\Core\\Tests\\FunctionalTestCase' => 'TYPO3\\TestingFramework\\Core\\Functional\\FunctionalTestCase']);
|
||||
};
|
||||
|
41
vendor/ssch/typo3-rector/config/v8/typo3-87.php
vendored
41
vendor/ssch/typo3-rector/config/v8/typo3-87.php
vendored
@ -3,6 +3,7 @@
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220420;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Rector\Renaming\Rector\Name\RenameClassRector;
|
||||
use Rector\Renaming\Rector\StaticCall\RenameStaticMethodRector;
|
||||
use Rector\Renaming\ValueObject\RenameStaticMethod;
|
||||
@ -21,25 +22,23 @@ use Ssch\TYPO3Rector\Rector\v8\v7\RefactorPrintContentMethodsRector;
|
||||
use Ssch\TYPO3Rector\Rector\v8\v7\RefactorRemovedMarkerMethodsFromContentObjectRendererRector;
|
||||
use Ssch\TYPO3Rector\Rector\v8\v7\TemplateServiceSplitConfArrayRector;
|
||||
use Ssch\TYPO3Rector\Rector\v8\v7\UseCachingFrameworkInsteadGetAndStoreHashRector;
|
||||
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
||||
return static function (\Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator $containerConfigurator) : void {
|
||||
$containerConfigurator->import(__DIR__ . '/../config.php');
|
||||
$services = $containerConfigurator->services();
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v8\v7\BackendUtilityGetRecordRawRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v8\v7\DataHandlerRmCommaRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v8\v7\TemplateServiceSplitConfArrayRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v8\v7\RefactorRemovedMarkerMethodsFromContentObjectRendererRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v8\v7\ChangeAttemptsParameterConsoleOutputRector::class);
|
||||
$services->set(\Rector\Renaming\Rector\Name\RenameClassRector::class)->configure(['TYPO3\\CMS\\Extbase\\Service\\TypoScriptService' => 'TYPO3\\CMS\\Core\\TypoScript\\TypoScriptService']);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\Migrations\RenameClassMapAliasRector::class)->configure([__DIR__ . '/../../Migrations/TYPO3/8.7/typo3/sysext/extbase/Migrations/Code/ClassAliasMap.php', __DIR__ . '/../../Migrations/TYPO3/8.7/typo3/sysext/fluid/Migrations/Code/ClassAliasMap.php', __DIR__ . '/../../Migrations/TYPO3/8.7/typo3/sysext/version/Migrations/Code/ClassAliasMap.php']);
|
||||
$services->set(\Rector\Renaming\Rector\StaticCall\RenameStaticMethodRector::class)->configure([new \Rector\Renaming\ValueObject\RenameStaticMethod('TYPO3\\CMS\\Core\\Utility\\GeneralUtility', 'csvValues', 'TYPO3\\CMS\\Core\\Utility\\CsvUtility', 'csvValues')]);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v8\v7\BackendUtilityGetRecordsByFieldToQueryBuilderRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v8\v7\RefactorPrintContentMethodsRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v8\v7\RefactorArrayBrowserWrapValueRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v8\v7\DataHandlerVariousMethodsAndMethodArgumentsRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v8\v7\RefactorGraphicalFunctionsTempPathAndCreateTemSubDirRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v8\v7\UseCachingFrameworkInsteadGetAndStoreHashRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\FileProcessor\Fluid\Rector\DefaultSwitchFluidRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\FileProcessor\TypoScript\Rector\LibFluidContentToLibContentElementRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\FileProcessor\TypoScript\PostRector\LibFluidContentToContentElementTypoScriptPostRector::class);
|
||||
return static function (\Rector\Config\RectorConfig $rectorConfig) : void {
|
||||
$rectorConfig->import(__DIR__ . '/../config.php');
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v8\v7\BackendUtilityGetRecordRawRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v8\v7\DataHandlerRmCommaRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v8\v7\TemplateServiceSplitConfArrayRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v8\v7\RefactorRemovedMarkerMethodsFromContentObjectRendererRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v8\v7\ChangeAttemptsParameterConsoleOutputRector::class);
|
||||
$rectorConfig->ruleWithConfiguration(\Rector\Renaming\Rector\Name\RenameClassRector::class, ['TYPO3\\CMS\\Extbase\\Service\\TypoScriptService' => 'TYPO3\\CMS\\Core\\TypoScript\\TypoScriptService']);
|
||||
$rectorConfig->ruleWithConfiguration(\Ssch\TYPO3Rector\Rector\Migrations\RenameClassMapAliasRector::class, [__DIR__ . '/../../Migrations/TYPO3/8.7/typo3/sysext/extbase/Migrations/Code/ClassAliasMap.php', __DIR__ . '/../../Migrations/TYPO3/8.7/typo3/sysext/fluid/Migrations/Code/ClassAliasMap.php', __DIR__ . '/../../Migrations/TYPO3/8.7/typo3/sysext/version/Migrations/Code/ClassAliasMap.php']);
|
||||
$rectorConfig->ruleWithConfiguration(\Rector\Renaming\Rector\StaticCall\RenameStaticMethodRector::class, [new \Rector\Renaming\ValueObject\RenameStaticMethod('TYPO3\\CMS\\Core\\Utility\\GeneralUtility', 'csvValues', 'TYPO3\\CMS\\Core\\Utility\\CsvUtility', 'csvValues')]);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v8\v7\BackendUtilityGetRecordsByFieldToQueryBuilderRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v8\v7\RefactorPrintContentMethodsRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v8\v7\RefactorArrayBrowserWrapValueRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v8\v7\DataHandlerVariousMethodsAndMethodArgumentsRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v8\v7\RefactorGraphicalFunctionsTempPathAndCreateTemSubDirRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v8\v7\UseCachingFrameworkInsteadGetAndStoreHashRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\FileProcessor\Fluid\Rector\DefaultSwitchFluidRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\FileProcessor\TypoScript\Rector\LibFluidContentToLibContentElementRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\FileProcessor\TypoScript\PostRector\LibFluidContentToContentElementTypoScriptPostRector::class);
|
||||
};
|
||||
|
11
vendor/ssch/typo3-rector/config/v9/tca-95.php
vendored
11
vendor/ssch/typo3-rector/config/v9/tca-95.php
vendored
@ -3,12 +3,11 @@
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220420;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Ssch\TYPO3Rector\Rector\v9\v0\RemoveOptionLocalizeChildrenAtParentLocalizationRector;
|
||||
use Ssch\TYPO3Rector\Rector\v9\v5\RefactorTypeInternalTypeFileAndFileReferenceToFalRector;
|
||||
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
||||
return static function (\Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator $containerConfigurator) : void {
|
||||
$containerConfigurator->import(__DIR__ . '/../config.php');
|
||||
$services = $containerConfigurator->services();
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v9\v0\RemoveOptionLocalizeChildrenAtParentLocalizationRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v9\v5\RefactorTypeInternalTypeFileAndFileReferenceToFalRector::class);
|
||||
return static function (\Rector\Config\RectorConfig $rectorConfig) : void {
|
||||
$rectorConfig->import(__DIR__ . '/../config.php');
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v9\v0\RemoveOptionLocalizeChildrenAtParentLocalizationRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v9\v5\RefactorTypeInternalTypeFileAndFileReferenceToFalRector::class);
|
||||
};
|
||||
|
64
vendor/ssch/typo3-rector/config/v9/typo3-90.php
vendored
64
vendor/ssch/typo3-rector/config/v9/typo3-90.php
vendored
@ -3,6 +3,7 @@
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220420;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Rector\Renaming\Rector\MethodCall\RenameMethodRector;
|
||||
use Rector\Renaming\ValueObject\MethodCallRename;
|
||||
use Ssch\TYPO3Rector\FileProcessor\Composer\Rector\RemoveCmsPackageDirFromExtraComposerRector;
|
||||
@ -15,6 +16,7 @@ use Ssch\TYPO3Rector\Rector\v9\v0\IgnoreValidationAnnotationRector;
|
||||
use Ssch\TYPO3Rector\Rector\v9\v0\InjectAnnotationRector;
|
||||
use Ssch\TYPO3Rector\Rector\v9\v0\MetaTagManagementRector;
|
||||
use Ssch\TYPO3Rector\Rector\v9\v0\MoveRenderArgumentsToInitializeArgumentsMethodRector;
|
||||
use Ssch\TYPO3Rector\Rector\v9\v0\QueryLogicalOrAndLogicalAndToArrayParameterRector;
|
||||
use Ssch\TYPO3Rector\Rector\v9\v0\RefactorBackendUtilityGetPagesTSconfigRector;
|
||||
use Ssch\TYPO3Rector\Rector\v9\v0\RefactorDeprecationLogRector;
|
||||
use Ssch\TYPO3Rector\Rector\v9\v0\RefactorMethodsFromExtensionManagementUtilityRector;
|
||||
@ -31,36 +33,34 @@ use Ssch\TYPO3Rector\Rector\v9\v0\UseExtensionConfigurationApiRector;
|
||||
use Ssch\TYPO3Rector\Rector\v9\v0\UseLogMethodInsteadOfNewLog2Rector;
|
||||
use Ssch\TYPO3Rector\Rector\v9\v0\UseNewComponentIdForPageTreeRector;
|
||||
use Ssch\TYPO3Rector\Rector\v9\v0\UseRenderingContextGetControllerContextRector;
|
||||
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
||||
return static function (\Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator $containerConfigurator) : void {
|
||||
$containerConfigurator->import(__DIR__ . '/../config.php');
|
||||
$services = $containerConfigurator->services();
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v9\v0\MoveRenderArgumentsToInitializeArgumentsMethodRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v9\v0\InjectAnnotationRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v9\v0\IgnoreValidationAnnotationRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v9\v0\ReplaceAnnotationRector::class)->configure(['lazy' => 'TYPO3\\CMS\\Extbase\\Annotation\\ORM\\Lazy', 'cascade' => 'TYPO3\\CMS\\Extbase\\Annotation\\ORM\\Cascade("remove")', 'transient' => 'TYPO3\\CMS\\Extbase\\Annotation\\ORM\\Transient']);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v9\v0\CheckForExtensionInfoRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v9\v0\RefactorMethodsFromExtensionManagementUtilityRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v9\v0\MetaTagManagementRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v9\v0\FindByPidsAndAuthorIdRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v9\v0\UseRenderingContextGetControllerContextRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v9\v0\RemovePropertiesFromSimpleDataHandlerControllerRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v9\v0\RemoveMethodInitTCARector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v9\v0\SubstituteCacheWrapperMethodsRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v9\v0\UseLogMethodInsteadOfNewLog2Rector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v9\v0\GeneratePageTitleRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v9\v0\SubstituteConstantParsetimeStartRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v9\v0\RemoveSecondArgumentGeneralUtilityMkdirDeepRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v9\v0\CheckForExtensionVersionRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v9\v0\RefactorDeprecationLogRector::class);
|
||||
$services->set(\Rector\Renaming\Rector\MethodCall\RenameMethodRector::class)->configure([new \Rector\Renaming\ValueObject\MethodCallRename('TYPO3\\CMS\\Core\\Utility\\GeneralUtility', 'getUserObj', 'makeInstance')]);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v9\v0\UseNewComponentIdForPageTreeRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v9\v0\RefactorBackendUtilityGetPagesTSconfigRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v9\v0\UseExtensionConfigurationApiRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v9\v0\ReplaceExtKeyWithExtensionKeyRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\FileProcessor\Composer\Rector\RemoveCmsPackageDirFromExtraComposerRector::class)->configure(['foo' => 'bar']);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v9\v0\SubstituteGeneralUtilityDevLogRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v9\v0\ReplacedGeneralUtilitySysLogWithLogginApiRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\FileProcessor\FlexForms\Rector\RenderTypeFlexFormRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v9\v0\QueryLogicalOrAndLogicalAndToArrayParameterRector::class);
|
||||
return static function (\Rector\Config\RectorConfig $rectorConfig) : void {
|
||||
$rectorConfig->import(__DIR__ . '/../config.php');
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v9\v0\MoveRenderArgumentsToInitializeArgumentsMethodRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v9\v0\InjectAnnotationRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v9\v0\IgnoreValidationAnnotationRector::class);
|
||||
$rectorConfig->ruleWithConfiguration(\Ssch\TYPO3Rector\Rector\v9\v0\ReplaceAnnotationRector::class, ['lazy' => 'TYPO3\\CMS\\Extbase\\Annotation\\ORM\\Lazy', 'cascade' => 'TYPO3\\CMS\\Extbase\\Annotation\\ORM\\Cascade("remove")', 'transient' => 'TYPO3\\CMS\\Extbase\\Annotation\\ORM\\Transient']);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v9\v0\CheckForExtensionInfoRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v9\v0\RefactorMethodsFromExtensionManagementUtilityRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v9\v0\MetaTagManagementRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v9\v0\FindByPidsAndAuthorIdRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v9\v0\UseRenderingContextGetControllerContextRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v9\v0\RemovePropertiesFromSimpleDataHandlerControllerRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v9\v0\RemoveMethodInitTCARector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v9\v0\SubstituteCacheWrapperMethodsRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v9\v0\UseLogMethodInsteadOfNewLog2Rector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v9\v0\GeneratePageTitleRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v9\v0\SubstituteConstantParsetimeStartRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v9\v0\RemoveSecondArgumentGeneralUtilityMkdirDeepRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v9\v0\CheckForExtensionVersionRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v9\v0\RefactorDeprecationLogRector::class);
|
||||
$rectorConfig->ruleWithConfiguration(\Rector\Renaming\Rector\MethodCall\RenameMethodRector::class, [new \Rector\Renaming\ValueObject\MethodCallRename('TYPO3\\CMS\\Core\\Utility\\GeneralUtility', 'getUserObj', 'makeInstance')]);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v9\v0\UseNewComponentIdForPageTreeRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v9\v0\RefactorBackendUtilityGetPagesTSconfigRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v9\v0\UseExtensionConfigurationApiRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v9\v0\ReplaceExtKeyWithExtensionKeyRector::class);
|
||||
$rectorConfig->ruleWithConfiguration(\Ssch\TYPO3Rector\FileProcessor\Composer\Rector\RemoveCmsPackageDirFromExtraComposerRector::class, ['foo' => 'bar']);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v9\v0\SubstituteGeneralUtilityDevLogRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v9\v0\ReplacedGeneralUtilitySysLogWithLogginApiRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\FileProcessor\FlexForms\Rector\RenderTypeFlexFormRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v9\v0\QueryLogicalOrAndLogicalAndToArrayParameterRector::class);
|
||||
};
|
||||
|
15
vendor/ssch/typo3-rector/config/v9/typo3-92.php
vendored
15
vendor/ssch/typo3-rector/config/v9/typo3-92.php
vendored
@ -3,16 +3,15 @@
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220420;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Rector\Renaming\Rector\Name\RenameClassRector;
|
||||
use Ssch\TYPO3Rector\Rector\v9\v2\GeneralUtilityGetUrlRequestHeadersRector;
|
||||
use Ssch\TYPO3Rector\Rector\v9\v2\PageNotFoundAndErrorHandlingRector;
|
||||
use Ssch\TYPO3Rector\Rector\v9\v2\RenameMethodCallToEnvironmentMethodCallRector;
|
||||
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
||||
return static function (\Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator $containerConfigurator) : void {
|
||||
$containerConfigurator->import(__DIR__ . '/../config.php');
|
||||
$services = $containerConfigurator->services();
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v9\v2\RenameMethodCallToEnvironmentMethodCallRector::class);
|
||||
$services->set(\Rector\Renaming\Rector\Name\RenameClassRector::class)->configure(['TYPO3\\CMS\\Core\\Cache\\Frontend\\StringFrontend' => 'TYPO3\\CMS\\Core\\Cache\\Frontend\\VariableFrontend']);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v9\v2\GeneralUtilityGetUrlRequestHeadersRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v9\v2\PageNotFoundAndErrorHandlingRector::class);
|
||||
return static function (\Rector\Config\RectorConfig $rectorConfig) : void {
|
||||
$rectorConfig->import(__DIR__ . '/../config.php');
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v9\v2\RenameMethodCallToEnvironmentMethodCallRector::class);
|
||||
$rectorConfig->ruleWithConfiguration(\Rector\Renaming\Rector\Name\RenameClassRector::class, ['TYPO3\\CMS\\Core\\Cache\\Frontend\\StringFrontend' => 'TYPO3\\CMS\\Core\\Cache\\Frontend\\VariableFrontend']);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v9\v2\GeneralUtilityGetUrlRequestHeadersRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v9\v2\PageNotFoundAndErrorHandlingRector::class);
|
||||
};
|
||||
|
29
vendor/ssch/typo3-rector/config/v9/typo3-93.php
vendored
29
vendor/ssch/typo3-rector/config/v9/typo3-93.php
vendored
@ -3,6 +3,7 @@
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220420;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Rector\Renaming\Rector\MethodCall\RenameMethodRector;
|
||||
use Rector\Renaming\ValueObject\MethodCallRename;
|
||||
use Ssch\TYPO3Rector\Rector\v9\v3\BackendUserAuthenticationSimplelogRector;
|
||||
@ -14,19 +15,17 @@ use Ssch\TYPO3Rector\Rector\v9\v3\RefactorTsConfigRelatedMethodsRector;
|
||||
use Ssch\TYPO3Rector\Rector\v9\v3\RemoveColPosParameterRector;
|
||||
use Ssch\TYPO3Rector\Rector\v9\v3\UseMethodGetPageShortcutDirectlyFromSysPageRector;
|
||||
use Ssch\TYPO3Rector\Rector\v9\v3\ValidateAnnotationRector;
|
||||
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
||||
return static function (\Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator $containerConfigurator) : void {
|
||||
$containerConfigurator->import(__DIR__ . '/../config.php');
|
||||
$services = $containerConfigurator->services();
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v9\v3\RemoveColPosParameterRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v9\v3\ValidateAnnotationRector::class);
|
||||
$services->set(\Rector\Renaming\Rector\MethodCall\RenameMethodRector::class)->configure([new \Rector\Renaming\ValueObject\MethodCallRename('TYPO3\\CMS\\Backend\\Controller\\Page\\LocalizationController', 'getUsedLanguagesInPageAndColumn', 'getUsedLanguagesInPage')]);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v9\v3\BackendUtilityGetModuleUrlRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v9\v3\PropertyUserTsToMethodGetTsConfigOfBackendUserAuthenticationRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v9\v3\UseMethodGetPageShortcutDirectlyFromSysPageRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v9\v3\CopyMethodGetPidForModTSconfigRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v9\v3\BackendUserAuthenticationSimplelogRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v9\v3\MoveLanguageFilesFromExtensionLangRector::class);
|
||||
$services->set(\Rector\Renaming\Rector\MethodCall\RenameMethodRector::class)->configure([new \Rector\Renaming\ValueObject\MethodCallRename('TYPO3\\CMS\\Extbase\\Mvc\\Controller\\Argument', 'getValidationResults', 'validate'), new \Rector\Renaming\ValueObject\MethodCallRename('TYPO3\\CMS\\Extbase\\Mvc\\Controller\\Arguments', 'getValidationResults', 'validate')]);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v9\v3\RefactorTsConfigRelatedMethodsRector::class);
|
||||
return static function (\Rector\Config\RectorConfig $rectorConfig) : void {
|
||||
$rectorConfig->import(__DIR__ . '/../config.php');
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v9\v3\RemoveColPosParameterRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v9\v3\ValidateAnnotationRector::class);
|
||||
$rectorConfig->ruleWithConfiguration(\Rector\Renaming\Rector\MethodCall\RenameMethodRector::class, [new \Rector\Renaming\ValueObject\MethodCallRename('TYPO3\\CMS\\Backend\\Controller\\Page\\LocalizationController', 'getUsedLanguagesInPageAndColumn', 'getUsedLanguagesInPage')]);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v9\v3\BackendUtilityGetModuleUrlRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v9\v3\PropertyUserTsToMethodGetTsConfigOfBackendUserAuthenticationRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v9\v3\UseMethodGetPageShortcutDirectlyFromSysPageRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v9\v3\CopyMethodGetPidForModTSconfigRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v9\v3\BackendUserAuthenticationSimplelogRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v9\v3\MoveLanguageFilesFromExtensionLangRector::class);
|
||||
$rectorConfig->ruleWithConfiguration(\Rector\Renaming\Rector\MethodCall\RenameMethodRector::class, [new \Rector\Renaming\ValueObject\MethodCallRename('TYPO3\\CMS\\Extbase\\Mvc\\Controller\\Argument', 'getValidationResults', 'validate'), new \Rector\Renaming\ValueObject\MethodCallRename('TYPO3\\CMS\\Extbase\\Mvc\\Controller\\Arguments', 'getValidationResults', 'validate')]);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v9\v3\RefactorTsConfigRelatedMethodsRector::class);
|
||||
};
|
||||
|
54
vendor/ssch/typo3-rector/config/v9/typo3-94.php
vendored
54
vendor/ssch/typo3-rector/config/v9/typo3-94.php
vendored
@ -3,11 +3,13 @@
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220420;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Ssch\TYPO3Rector\Rector\v9\v4\AdditionalFieldProviderRector;
|
||||
use Ssch\TYPO3Rector\Rector\v9\v4\BackendUtilityShortcutExistsRector;
|
||||
use Ssch\TYPO3Rector\Rector\v9\v4\CallEnableFieldsFromPageRepositoryRector;
|
||||
use Ssch\TYPO3Rector\Rector\v9\v4\ConstantsToEnvironmentApiCallRector;
|
||||
use Ssch\TYPO3Rector\Rector\v9\v4\DocumentTemplateAddStyleSheetRector;
|
||||
use Ssch\TYPO3Rector\Rector\v9\v4\GeneralUtilityGetHostNameToGetIndpEnvRector;
|
||||
use Ssch\TYPO3Rector\Rector\v9\v4\RefactorDeprecatedConcatenateMethodsPageRendererRector;
|
||||
use Ssch\TYPO3Rector\Rector\v9\v4\RefactorExplodeUrl2ArrayFromGeneralUtilityRector;
|
||||
use Ssch\TYPO3Rector\Rector\v9\v4\RemoveInitMethodGraphicalFunctionsRector;
|
||||
@ -25,31 +27,29 @@ use Ssch\TYPO3Rector\Rector\v9\v4\UseLanguageAspectForTsfeLanguagePropertiesRect
|
||||
use Ssch\TYPO3Rector\Rector\v9\v4\UseRootlineUtilityInsteadOfGetRootlineMethodRector;
|
||||
use Ssch\TYPO3Rector\Rector\v9\v4\UseSignalAfterExtensionInstallInsteadOfHasInstalledExtensionsRector;
|
||||
use Ssch\TYPO3Rector\Rector\v9\v4\UseSignalTablesDefinitionIsBeingBuiltSqlExpectedSchemaServiceRector;
|
||||
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
||||
return static function (\Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator $containerConfigurator) : void {
|
||||
$containerConfigurator->import(__DIR__ . '/../config.php');
|
||||
$services = $containerConfigurator->services();
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v9\v4\RefactorDeprecatedConcatenateMethodsPageRendererRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v9\v4\CallEnableFieldsFromPageRepositoryRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v9\v4\ConstantsToEnvironmentApiCallRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v9\v4\RemoveInitTemplateMethodCallRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v9\v4\UseContextApiRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v9\v4\RefactorExplodeUrl2ArrayFromGeneralUtilityRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v9\v4\SystemEnvironmentBuilderConstantsRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v9\v4\UseContextApiForVersioningWorkspaceIdRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v9\v4\DocumentTemplateAddStyleSheetRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v9\v4\UseLanguageAspectForTsfeLanguagePropertiesRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v9\v4\BackendUtilityShortcutExistsRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v9\v4\UseSignalTablesDefinitionIsBeingBuiltSqlExpectedSchemaServiceRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v9\v4\UseGetMenuInsteadOfGetFirstWebPageRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v9\v4\RemoveInitMethodGraphicalFunctionsRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v9\v4\RemoveInitMethodTemplateServiceRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v9\v4\UseAddJsFileInsteadOfLoadJavascriptLibRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v9\v4\UseRootlineUtilityInsteadOfGetRootlineMethodRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v9\v4\TemplateGetFileNameToFilePathSanitizerRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v9\v4\UseSignalAfterExtensionInstallInsteadOfHasInstalledExtensionsRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v9\v4\UseClassSchemaInsteadReflectionServiceMethodsRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v9\v4\RemoveMethodsFromEidUtilityAndTsfeRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v9\v4\AdditionalFieldProviderRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v9\v4\GeneralUtilityGetHostNameToGetIndpEnvRector::class);
|
||||
return static function (\Rector\Config\RectorConfig $rectorConfig) : void {
|
||||
$rectorConfig->import(__DIR__ . '/../config.php');
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v9\v4\RefactorDeprecatedConcatenateMethodsPageRendererRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v9\v4\CallEnableFieldsFromPageRepositoryRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v9\v4\ConstantsToEnvironmentApiCallRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v9\v4\RemoveInitTemplateMethodCallRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v9\v4\UseContextApiRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v9\v4\RefactorExplodeUrl2ArrayFromGeneralUtilityRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v9\v4\SystemEnvironmentBuilderConstantsRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v9\v4\UseContextApiForVersioningWorkspaceIdRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v9\v4\DocumentTemplateAddStyleSheetRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v9\v4\UseLanguageAspectForTsfeLanguagePropertiesRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v9\v4\BackendUtilityShortcutExistsRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v9\v4\UseSignalTablesDefinitionIsBeingBuiltSqlExpectedSchemaServiceRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v9\v4\UseGetMenuInsteadOfGetFirstWebPageRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v9\v4\RemoveInitMethodGraphicalFunctionsRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v9\v4\RemoveInitMethodTemplateServiceRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v9\v4\UseAddJsFileInsteadOfLoadJavascriptLibRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v9\v4\UseRootlineUtilityInsteadOfGetRootlineMethodRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v9\v4\TemplateGetFileNameToFilePathSanitizerRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v9\v4\UseSignalAfterExtensionInstallInsteadOfHasInstalledExtensionsRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v9\v4\UseClassSchemaInsteadReflectionServiceMethodsRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v9\v4\RemoveMethodsFromEidUtilityAndTsfeRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v9\v4\AdditionalFieldProviderRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v9\v4\GeneralUtilityGetHostNameToGetIndpEnvRector::class);
|
||||
};
|
||||
|
23
vendor/ssch/typo3-rector/config/v9/typo3-95.php
vendored
23
vendor/ssch/typo3-rector/config/v9/typo3-95.php
vendored
@ -3,6 +3,7 @@
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220420;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Rector\Renaming\Rector\MethodCall\RenameMethodRector;
|
||||
use Rector\Renaming\ValueObject\MethodCallRename;
|
||||
use Ssch\TYPO3Rector\Rector\Migrations\RenameClassMapAliasRector;
|
||||
@ -12,16 +13,14 @@ use Ssch\TYPO3Rector\Rector\v9\v5\RemoveFlushCachesRector;
|
||||
use Ssch\TYPO3Rector\Rector\v9\v5\RemoveInitMethodFromPageRepositoryRector;
|
||||
use Ssch\TYPO3Rector\Rector\v9\v5\RemoveInternalAnnotationRector;
|
||||
use Ssch\TYPO3Rector\Rector\v9\v5\UsePackageManagerActivePackagesRector;
|
||||
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
||||
return static function (\Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator $containerConfigurator) : void {
|
||||
$containerConfigurator->import(__DIR__ . '/../config.php');
|
||||
$services = $containerConfigurator->services();
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v9\v5\UsePackageManagerActivePackagesRector::class);
|
||||
$services->set(\Rector\Renaming\Rector\MethodCall\RenameMethodRector::class)->configure([new \Rector\Renaming\ValueObject\MethodCallRename('TYPO3\\CMS\\Core\\Resource\\ResourceStorage', 'dumpFileContents', 'streamFile')]);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v9\v5\RemoveFlushCachesRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v9\v5\RemoveInternalAnnotationRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\Migrations\RenameClassMapAliasRector::class)->configure([__DIR__ . '/../../Migrations/TYPO3/9.5/typo3/sysext/adminpanel/Migrations/Code/ClassAliasMap.php', __DIR__ . '/../../Migrations/TYPO3/9.5/typo3/sysext/backend/Migrations/Code/ClassAliasMap.php', __DIR__ . '/../../Migrations/TYPO3/9.5/typo3/sysext/core/Migrations/Code/ClassAliasMap.php', __DIR__ . '/../../Migrations/TYPO3/9.5/typo3/sysext/extbase/Migrations/Code/ClassAliasMap.php', __DIR__ . '/../../Migrations/TYPO3/9.5/typo3/sysext/fluid/Migrations/Code/ClassAliasMap.php', __DIR__ . '/../../Migrations/TYPO3/9.5/typo3/sysext/info/Migrations/Code/ClassAliasMap.php', __DIR__ . '/../../Migrations/TYPO3/9.5/typo3/sysext/lowlevel/Migrations/Code/ClassAliasMap.php', __DIR__ . '/../../Migrations/TYPO3/9.5/typo3/sysext/recordlist/Migrations/Code/ClassAliasMap.php', __DIR__ . '/../../Migrations/TYPO3/9.5/typo3/sysext/reports/Migrations/Code/ClassAliasMap.php', __DIR__ . '/../../Migrations/TYPO3/9.5/typo3/sysext/t3editor/Migrations/Code/ClassAliasMap.php', __DIR__ . '/../../Migrations/TYPO3/9.5/typo3/sysext/workspaces/Migrations/Code/ClassAliasMap.php']);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v9\v5\RemoveInitMethodFromPageRepositoryRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v9\v5\RefactorProcessOutputRector::class);
|
||||
$services->set(\Ssch\TYPO3Rector\Rector\v9\v5\RefactorPropertiesOfTypoScriptFrontendControllerRector::class);
|
||||
return static function (\Rector\Config\RectorConfig $rectorConfig) : void {
|
||||
$rectorConfig->import(__DIR__ . '/../config.php');
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v9\v5\UsePackageManagerActivePackagesRector::class);
|
||||
$rectorConfig->ruleWithConfiguration(\Rector\Renaming\Rector\MethodCall\RenameMethodRector::class, [new \Rector\Renaming\ValueObject\MethodCallRename('TYPO3\\CMS\\Core\\Resource\\ResourceStorage', 'dumpFileContents', 'streamFile')]);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v9\v5\RemoveFlushCachesRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v9\v5\RemoveInternalAnnotationRector::class);
|
||||
$rectorConfig->ruleWithConfiguration(\Ssch\TYPO3Rector\Rector\Migrations\RenameClassMapAliasRector::class, [__DIR__ . '/../../Migrations/TYPO3/9.5/typo3/sysext/adminpanel/Migrations/Code/ClassAliasMap.php', __DIR__ . '/../../Migrations/TYPO3/9.5/typo3/sysext/backend/Migrations/Code/ClassAliasMap.php', __DIR__ . '/../../Migrations/TYPO3/9.5/typo3/sysext/core/Migrations/Code/ClassAliasMap.php', __DIR__ . '/../../Migrations/TYPO3/9.5/typo3/sysext/extbase/Migrations/Code/ClassAliasMap.php', __DIR__ . '/../../Migrations/TYPO3/9.5/typo3/sysext/fluid/Migrations/Code/ClassAliasMap.php', __DIR__ . '/../../Migrations/TYPO3/9.5/typo3/sysext/info/Migrations/Code/ClassAliasMap.php', __DIR__ . '/../../Migrations/TYPO3/9.5/typo3/sysext/lowlevel/Migrations/Code/ClassAliasMap.php', __DIR__ . '/../../Migrations/TYPO3/9.5/typo3/sysext/recordlist/Migrations/Code/ClassAliasMap.php', __DIR__ . '/../../Migrations/TYPO3/9.5/typo3/sysext/reports/Migrations/Code/ClassAliasMap.php', __DIR__ . '/../../Migrations/TYPO3/9.5/typo3/sysext/t3editor/Migrations/Code/ClassAliasMap.php', __DIR__ . '/../../Migrations/TYPO3/9.5/typo3/sysext/workspaces/Migrations/Code/ClassAliasMap.php']);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v9\v5\RemoveInitMethodFromPageRepositoryRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v9\v5\RefactorProcessOutputRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\Rector\v9\v5\RefactorPropertiesOfTypoScriptFrontendControllerRector::class);
|
||||
};
|
||||
|
@ -3,6 +3,7 @@
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20220420;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Ssch\TYPO3Rector\FileProcessor\TypoScript\Conditions\ApplicationContextConditionMatcher;
|
||||
use Ssch\TYPO3Rector\FileProcessor\TypoScript\Conditions\BrowserConditionMatcher;
|
||||
use Ssch\TYPO3Rector\FileProcessor\TypoScript\Conditions\CompatVersionConditionMatcher;
|
||||
@ -19,10 +20,9 @@ use Ssch\TYPO3Rector\FileProcessor\TypoScript\Conditions\TreeLevelConditionMatch
|
||||
use Ssch\TYPO3Rector\FileProcessor\TypoScript\Conditions\UsergroupConditionMatcherMatcher;
|
||||
use Ssch\TYPO3Rector\FileProcessor\TypoScript\Conditions\VersionConditionMatcher;
|
||||
use Ssch\TYPO3Rector\FileProcessor\TypoScript\Rector\OldConditionToExpressionLanguageTypoScriptRector;
|
||||
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
||||
return static function (\Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator $containerConfigurator) : void {
|
||||
$containerConfigurator->import(__DIR__ . '/../config.php');
|
||||
$services = $containerConfigurator->services();
|
||||
return static function (\Rector\Config\RectorConfig $rectorConfig) : void {
|
||||
$rectorConfig->import(__DIR__ . '/../config.php');
|
||||
$services = $rectorConfig->services();
|
||||
$services->set(\Ssch\TYPO3Rector\FileProcessor\TypoScript\Conditions\ApplicationContextConditionMatcher::class);
|
||||
$services->set(\Ssch\TYPO3Rector\FileProcessor\TypoScript\Conditions\BrowserConditionMatcher::class);
|
||||
$services->set(\Ssch\TYPO3Rector\FileProcessor\TypoScript\Conditions\CompatVersionConditionMatcher::class);
|
||||
@ -38,5 +38,5 @@ return static function (\Symfony\Component\DependencyInjection\Loader\Configurat
|
||||
$services->set(\Ssch\TYPO3Rector\FileProcessor\TypoScript\Conditions\TreeLevelConditionMatcher::class);
|
||||
$services->set(\Ssch\TYPO3Rector\FileProcessor\TypoScript\Conditions\UsergroupConditionMatcherMatcher::class);
|
||||
$services->set(\Ssch\TYPO3Rector\FileProcessor\TypoScript\Conditions\VersionConditionMatcher::class);
|
||||
$services->set(\Ssch\TYPO3Rector\FileProcessor\TypoScript\Rector\OldConditionToExpressionLanguageTypoScriptRector::class);
|
||||
$rectorConfig->rule(\Ssch\TYPO3Rector\FileProcessor\TypoScript\Rector\OldConditionToExpressionLanguageTypoScriptRector::class);
|
||||
};
|
||||
|
@ -55,8 +55,8 @@ We got your back with the version constraints of your packages though! For core
|
||||
```php
|
||||
use Ssch\TYPO3Rector\Set\Typo3SetList;
|
||||
...
|
||||
$containerConfigurator->import(Typo3SetList::COMPOSER_PACKAGES_95_CORE);
|
||||
$containerConfigurator->import(Typo3SetList::COMPOSER_PACKAGES_95_EXTENSIONS);
|
||||
$rectorConfig->import(Typo3SetList::COMPOSER_PACKAGES_95_CORE);
|
||||
$rectorConfig->import(Typo3SetList::COMPOSER_PACKAGES_95_EXTENSIONS);
|
||||
```
|
||||
|
||||
This will add the fitting constraints for each package available on packagist - **Be aware:** The list is based on extensions that got a dependency against *typo3/cms-core*
|
||||
@ -76,7 +76,7 @@ TCA changes are often not that big in their impact but necessary. Also custom pa
|
||||
Both of that is reason to gather multiple packages for a combined TCA run with the following config:
|
||||
|
||||
```php
|
||||
$containerConfigurator->import(Typo3SetList::TCA_95);
|
||||
$rectorConfig->import(Typo3SetList::TCA_95);
|
||||
|
||||
$parameters->set(Option::PATHS, [
|
||||
__DIR__ . '/packages/package_numberone',
|
||||
|
@ -40,14 +40,12 @@ It adds an extension-key if it is missing. You can configure this Processor in y
|
||||
```php
|
||||
# rector.php configuration file
|
||||
use Ssch\TYPO3Rector\FileProcessor\Composer\Rector\ExtensionComposerRector;
|
||||
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
||||
use Rector\Config\RectorConfig;
|
||||
|
||||
return static function (ContainerConfigurator $containerConfigurator): void {
|
||||
$containerConfigurator->import(__DIR__ . '/config/config.php');
|
||||
return static function (RectorConfig $rectorConfig): void {
|
||||
$rectorConfig->import(__DIR__ . '/config/config.php');
|
||||
|
||||
$services = $containerConfigurator->services();
|
||||
|
||||
$services->set(ExtensionComposerRector::class)->configure([
|
||||
$rectorConfig->ruleWithConfiguration(ExtensionComposerRector::class, [
|
||||
ExtensionComposerRector::TYPO3_VERSION_CONSTRAINT => '^10.4'
|
||||
]);
|
||||
};
|
||||
@ -57,8 +55,8 @@ Also you can update all your core packages and third party packages (that are on
|
||||
```php
|
||||
use Ssch\TYPO3Rector\Set\Typo3SetList;
|
||||
...
|
||||
$containerConfigurator->import(Typo3SetList::COMPOSER_PACKAGES_104_CORE);
|
||||
$containerConfigurator->import(Typo3SetList::COMPOSER_PACKAGES_104_EXTENSIONS);
|
||||
$rectorConfig->import(Typo3SetList::COMPOSER_PACKAGES_104_CORE);
|
||||
$rectorConfig->import(Typo3SetList::COMPOSER_PACKAGES_104_EXTENSIONS);
|
||||
```
|
||||
|
||||
## FormYamlProcessor
|
||||
@ -71,19 +69,20 @@ This is also configurable in your rector.php configuration file:
|
||||
|
||||
```php
|
||||
# rector.php configuration file
|
||||
use Rector\Config\RectorConfig;
|
||||
use Ssch\TYPO3Rector\FileProcessor\TypoScript\TypoScriptFileProcessor;
|
||||
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
||||
|
||||
return static function (ContainerConfigurator $containerConfigurator): void {
|
||||
$containerConfigurator->import(__DIR__ . '/config/config.php');
|
||||
return static function (RectorConfig $rectorConfig): void {
|
||||
$rectorConfig->import(__DIR__ . '/config/config.php');
|
||||
|
||||
$services = $containerConfigurator->services();
|
||||
$rectorConfig = $containerConfigurator->services();
|
||||
|
||||
$services->set(TypoScriptFileProcessor::class)->configure([
|
||||
$rectorConfig->set(TypoScriptFileProcessor::class)
|
||||
->call('configure', [[
|
||||
TypoScriptFileProcessor::ALLOWED_FILE_EXTENSIONS => [
|
||||
'special',
|
||||
],
|
||||
]);
|
||||
]]);
|
||||
};
|
||||
```
|
||||
# Special Cases
|
||||
|
@ -33,22 +33,21 @@ Let´s say you want to migrate the TCA from a TYPO3 7 project to the latest TYPO
|
||||
// rector.php
|
||||
declare(strict_types=1);
|
||||
|
||||
use Rector\Core\Configuration\Option;
|
||||
use Rector\Config\RectorConfig;
|
||||
use Rector\Core\ValueObject\PhpVersion;
|
||||
use Rector\PostRector\Rector\NameImportingPostRector;
|
||||
use Ssch\TYPO3Rector\FileProcessor\Composer\Rector\ExtensionComposerRector;
|
||||
use Ssch\TYPO3Rector\Rector\General\ConvertImplicitVariablesToExplicitGlobalsRector;
|
||||
use Ssch\TYPO3Rector\Rector\General\ExtEmConfRector;
|
||||
use Ssch\TYPO3Rector\Set\Typo3LevelSetList;
|
||||
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
||||
|
||||
return static function (ContainerConfigurator $containerConfigurator): void {
|
||||
$parameters = $containerConfigurator->parameters();
|
||||
return static function (RectorConfig $rectorConfig): void {
|
||||
$parameters = $rectorConfig->parameters();
|
||||
|
||||
$containerConfigurator->import(Typo3LevelSetList::UP_TO_TYPO3_11);
|
||||
$rectorConfig->import(Typo3LevelSetList::UP_TO_TYPO3_11);
|
||||
|
||||
// FQN classes are not imported by default. If you don't do it manually after every Rector run, enable it by:
|
||||
$parameters->set(Option::AUTO_IMPORT_NAMES, true);
|
||||
$rectorConfig->importNames();
|
||||
|
||||
// this will not import root namespace classes, like \DateTime or \Exception
|
||||
$parameters->set(Option::IMPORT_SHORT_CLASSES, false);
|
||||
@ -60,19 +59,19 @@ return static function (ContainerConfigurator $containerConfigurator): void {
|
||||
$parameters->set(Option::IMPORT_DOC_BLOCKS, false);
|
||||
|
||||
// Define your target version which you want to support
|
||||
$parameters->set(Option::PHP_VERSION_FEATURES, PhpVersion::PHP_74);
|
||||
$rectorConfig->phpVersion(PhpVersion::PHP_74);
|
||||
|
||||
// If you only want to process one/some TYPO3 extension(s), you can specify its path(s) here.
|
||||
// If you use the option --config change __DIR__ to getcwd()
|
||||
// $parameters->set(Option::PATHS, [
|
||||
// $rectorConfig->paths([
|
||||
// __DIR__ . '/packages/acme_demo/',
|
||||
// ]);
|
||||
|
||||
// When you use rector there are rules that require some more actions like creating UpgradeWizards for outdated TCA types.
|
||||
// To fully support you we added some warnings. So watch out for them.
|
||||
|
||||
// If you set option Option::AUTO_IMPORT_NAMES to true, you should consider excluding some TYPO3 files.
|
||||
$parameters->set(Option::SKIP, [
|
||||
// If you use importNames(), you should consider excluding some TYPO3 files.
|
||||
$rectorConfig->skip([
|
||||
NameImportingPostRector::class => [
|
||||
'ClassAliasMap.php',
|
||||
'ext_localconf.php',
|
||||
@ -101,39 +100,39 @@ return static function (ContainerConfigurator $containerConfigurator): void {
|
||||
|
||||
// If you have trouble that rector cannot run because some TYPO3 constants are not defined add an additional constants file
|
||||
// Have a look at https://github.com/sabbelasichon/typo3-rector/blob/master/typo3.constants.php
|
||||
// $parameters->set(Option::AUTOLOAD_PATHS, [
|
||||
// $rectorConfig->autoloadPaths([
|
||||
// __DIR__ . '/typo3.constants.php'
|
||||
// ]);
|
||||
|
||||
// get services (needed for register a single rule)
|
||||
$services = $containerConfigurator->services();
|
||||
|
||||
// register a single rule
|
||||
// $services->set(InjectAnnotationRector::class);
|
||||
// $rectorConfig->rule(InjectAnnotationRector::class);
|
||||
|
||||
/**
|
||||
* Useful rule from RectorPHP itself to transform i.e. GeneralUtility::makeInstance('TYPO3\CMS\Core\Log\LogManager')
|
||||
* to GeneralUtility::makeInstance(\TYPO3\CMS\Core\Log\LogManager::class) calls.
|
||||
* But be warned, sometimes it produces false positives (edge cases), so watch out
|
||||
*/
|
||||
// $services->set(StringClassNameToClassConstantRector::class);
|
||||
// $rectorConfig->rule(StringClassNameToClassConstantRector::class);
|
||||
|
||||
// Optional non-php file functionalities:
|
||||
// @see https://github.com/sabbelasichon/typo3-rector/blob/main/docs/beyond_php_file_processors.md
|
||||
|
||||
// Adapt your composer.json dependencies to the latest available version for the defined SetList
|
||||
// $containerConfigurator->import(Typo3SetList::COMPOSER_PACKAGES_104_CORE);
|
||||
// $containerConfigurator->import(Typo3SetList::COMPOSER_PACKAGES_104_EXTENSIONS);
|
||||
// $recto$servicesrConfig->sets([
|
||||
// Typo3SetList::COMPOSER_PACKAGES_104_CORE,
|
||||
// Typo3SetList::COMPOSER_PACKAGES_104_EXTENSIONS,
|
||||
// ]);
|
||||
|
||||
// Rewrite your extbase persistence class mapping from typoscript into php according to official docs.
|
||||
// This processor will create a summarized file with all of the typoscript rewrites combined into a single file.
|
||||
// The filename can be passed as argument, "Configuration_Extbase_Persistence_Classes.php" is default.
|
||||
// $services->set(ExtbasePersistenceTypoScriptRector::class);
|
||||
// $rectorConfig->rule(ExtbasePersistenceTypoScriptRector::class);
|
||||
// Add some general TYPO3 rules
|
||||
$services->set(ConvertImplicitVariablesToExplicitGlobalsRector::class);
|
||||
$services->set(ExtEmConfRector::class);
|
||||
$services->set(ExtensionComposerRector::class);
|
||||
$rectorConfig->rule(ConvertImplicitVariablesToExplicitGlobalsRector::class);
|
||||
$rectorConfig->rule(ExtEmConfRector::class);
|
||||
$rectorConfig->rule(ExtensionComposerRector::class);
|
||||
|
||||
$services = $rectorConfig->services();
|
||||
// Do you want to modernize your TypoScript include statements for files and move from <INCLUDE /> to @import use the FileIncludeToImportStatementVisitor
|
||||
// $services->set(FileIncludeToImportStatementVisitor::class);
|
||||
};
|
||||
|
@ -14,43 +14,40 @@ use Ssch\TYPO3Rector\Rector\General\ConvertImplicitVariablesToExplicitGlobalsRec
|
||||
use Ssch\TYPO3Rector\Rector\General\ExtEmConfRector;
|
||||
use Ssch\TYPO3Rector\Set\Typo3LevelSetList;
|
||||
use Ssch\TYPO3Rector\FileProcessor\TypoScript\Rector\ExtbasePersistenceTypoScriptRector;
|
||||
use Rector\Config\RectorConfig;
|
||||
|
||||
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
||||
|
||||
return static function (ContainerConfigurator $containerConfigurator): void {
|
||||
$parameters = $containerConfigurator->parameters();
|
||||
|
||||
$containerConfigurator->import(Typo3LevelSetList::UP_TO_TYPO3_11);
|
||||
return static function (RectorConfig $rectorConfig): void {
|
||||
$rectorConfig->sets([
|
||||
Typo3LevelSetList::UP_TO_TYPO3_11,
|
||||
]);
|
||||
|
||||
// In order to have a better analysis from phpstan we teach it here some more things
|
||||
$parameters->set(Option::PHPSTAN_FOR_RECTOR_PATH, Typo3Option::PHPSTAN_FOR_RECTOR_PATH);
|
||||
$rectorConfig->phpstanConfig(Typo3Option::PHPSTAN_FOR_RECTOR_PATH);
|
||||
|
||||
// FQN classes are not imported by default. If you don't do it manually after every Rector run, enable it by:
|
||||
$parameters->set(Option::AUTO_IMPORT_NAMES, true);
|
||||
$rectorConfig->importNames();
|
||||
|
||||
// this will not import root namespace classes, like \DateTime or \Exception
|
||||
$parameters = $rectorConfig->parameters();
|
||||
$parameters->set(Option::IMPORT_SHORT_CLASSES, false);
|
||||
|
||||
// this prevents infinite loop issues due to symlinks in e.g. ".Build/" folders within single extensions
|
||||
$parameters->set(Option::FOLLOW_SYMLINKS, false);
|
||||
|
||||
// this will not import classes used in PHP DocBlocks, like in /** @var \Some\Class */
|
||||
$parameters->set(Option::IMPORT_DOC_BLOCKS, false);
|
||||
|
||||
// Define your target version which you want to support
|
||||
$parameters->set(Option::PHP_VERSION_FEATURES, PhpVersion::PHP_74);
|
||||
$rectorConfig->phpVersion(PhpVersion::PHP_74);
|
||||
|
||||
// If you have an editorconfig and changed files should keep their format enable it here
|
||||
// $parameters->set(Option::ENABLE_EDITORCONFIG, true);
|
||||
|
||||
// If you only want to process one/some TYPO3 extension(s), you can specify its path(s) here.
|
||||
// If you use the option --config change __DIR__ to getcwd()
|
||||
// $parameters->set(Option::PATHS, [
|
||||
// $rectorConfig->paths([
|
||||
// __DIR__ . '/packages/acme_demo/',
|
||||
// ]);
|
||||
|
||||
// If you use the option --config change __DIR__ to getcwd()
|
||||
$parameters->set(Option::SKIP, [
|
||||
$rectorConfig->skip([
|
||||
// @see https://github.com/sabbelasichon/typo3-rector/issues/2536
|
||||
__DIR__ . '/**/Configuration/ExtensionBuilder/*',
|
||||
// We skip those directories on purpose as there might be node_modules or similar
|
||||
@ -85,39 +82,38 @@ return static function (ContainerConfigurator $containerConfigurator): void {
|
||||
// __DIR__ . '/typo3.constants.php'
|
||||
// ]);
|
||||
|
||||
// get services (needed for register a single rule)
|
||||
$services = $containerConfigurator->services();
|
||||
|
||||
// register a single rule
|
||||
// $services->set(InjectAnnotationRector::class);
|
||||
// $rectorConfig->rule(InjectAnnotationRector::class);
|
||||
|
||||
/**
|
||||
* Useful rule from RectorPHP itself to transform i.e. GeneralUtility::makeInstance('TYPO3\CMS\Core\Log\LogManager')
|
||||
* to GeneralUtility::makeInstance(\TYPO3\CMS\Core\Log\LogManager::class) calls.
|
||||
* But be warned, sometimes it produces false positives (edge cases), so watch out
|
||||
*/
|
||||
// $services->set(StringClassNameToClassConstantRector::class);
|
||||
// $rectorConfig->rule(StringClassNameToClassConstantRector::class);
|
||||
|
||||
// Optional non-php file functionalities:
|
||||
// @see https://github.com/sabbelasichon/typo3-rector/blob/main/docs/beyond_php_file_processors.md
|
||||
|
||||
// Adapt your composer.json dependencies to the latest available version for the defined SetList
|
||||
// $containerConfigurator->import(Typo3SetList::COMPOSER_PACKAGES_104_CORE);
|
||||
// $containerConfigurator->import(Typo3SetList::COMPOSER_PACKAGES_104_EXTENSIONS);
|
||||
// $rectorConfig->sets([
|
||||
// Typo3SetList::COMPOSER_PACKAGES_104_CORE
|
||||
// Typo3SetList::COMPOSER_PACKAGES_104_EXTENSIONS,
|
||||
// );
|
||||
|
||||
// Rewrite your extbase persistence class mapping from typoscript into php according to official docs.
|
||||
// This processor will create a summarized file with all of the typoscript rewrites combined into a single file.
|
||||
// The filename can be passed as argument, "Configuration_Extbase_Persistence_Classes.php" is default.
|
||||
// $services->set(ExtbasePersistenceTypoScriptRector::class);
|
||||
// Add some general TYPO3 rules
|
||||
$services->set(ConvertImplicitVariablesToExplicitGlobalsRector::class);
|
||||
$services->set(ExtEmConfRector::class)->configure([
|
||||
$rectorConfig->rule(ConvertImplicitVariablesToExplicitGlobalsRector::class);
|
||||
$rectorConfig->rule(ExtEmConfRector::class)->configure([
|
||||
ExtEmConfRector::ADDITIONAL_VALUES_TO_BE_REMOVED => []
|
||||
]);
|
||||
$services->set(ExtensionComposerRector::class)->configure([
|
||||
$rectorConfig->ruleWithConfiguration(ExtensionComposerRector::class, [
|
||||
ExtensionComposerRector::TYPO3_VERSION_CONSTRAINT => ''
|
||||
]);
|
||||
|
||||
// Do you want to modernize your TypoScript include statements for files and move from <INCLUDE /> to @import use the FileIncludeToImportStatementVisitor
|
||||
// $services->set(FileIncludeToImportStatementTypoScriptRector::class);
|
||||
// $rectorConfig->rule(FileIncludeToImportStatementTypoScriptRector::class);
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user