mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-18 05:48:21 +01:00
f27b77df88
90dae505af
Remove uses nodes attribute - part #1 (#2155)
21 lines
870 B
PHP
21 lines
870 B
PHP
<?php
|
|
|
|
declare (strict_types=1);
|
|
namespace RectorPrefix20220425;
|
|
|
|
use Rector\Config\RectorConfig;
|
|
use Rector\Core\Bootstrap\ExtensionConfigResolver;
|
|
return static function (\Rector\Config\RectorConfig $rectorConfig) : void {
|
|
$rectorConfig->import(__DIR__ . '/services.php');
|
|
$rectorConfig->import(__DIR__ . '/services-rules.php');
|
|
$rectorConfig->import(__DIR__ . '/services-packages.php');
|
|
$rectorConfig->import(__DIR__ . '/parameters.php');
|
|
$extensionConfigResolver = new \Rector\Core\Bootstrap\ExtensionConfigResolver();
|
|
$extensionConfigFiles = $extensionConfigResolver->provide();
|
|
foreach ($extensionConfigFiles as $extensionConfigFile) {
|
|
$rectorConfig->import($extensionConfigFile->getRealPath());
|
|
}
|
|
// require only in dev
|
|
$rectorConfig->import(__DIR__ . '/../utils/compiler/config/config.php', null, 'not_found');
|
|
};
|