mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-19 14:27:14 +01:00
ab3b6b2c9e
651562dca2
[automated] Re-Generate Nodes/Rectors Documentation (#211)
21 lines
1.0 KiB
PHP
21 lines
1.0 KiB
PHP
<?php
|
|
|
|
declare (strict_types=1);
|
|
namespace RectorPrefix20210613;
|
|
|
|
use Rector\Core\Bootstrap\ExtensionConfigResolver;
|
|
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
|
return static function (\Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator $containerConfigurator) : void {
|
|
$containerConfigurator->import(__DIR__ . '/services.php');
|
|
$containerConfigurator->import(__DIR__ . '/services-rules.php');
|
|
$containerConfigurator->import(__DIR__ . '/services-packages.php');
|
|
$containerConfigurator->import(__DIR__ . '/parameters.php');
|
|
$extensionConfigResolver = new \Rector\Core\Bootstrap\ExtensionConfigResolver();
|
|
$extensionConfigFiles = $extensionConfigResolver->provide();
|
|
foreach ($extensionConfigFiles as $extensionConfigFile) {
|
|
$containerConfigurator->import($extensionConfigFile->getRealPath());
|
|
}
|
|
// require only in dev
|
|
$containerConfigurator->import(__DIR__ . '/../utils/compiler/config/config.php', null, 'not_found');
|
|
};
|