mirror of
https://github.com/rectorphp/rector.git
synced 2025-02-23 19:24:48 +01:00
28 lines
776 B
PHP
28 lines
776 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
|
|
|
return static function (ContainerConfigurator $containerConfigurator): void {
|
|
$parameters = $containerConfigurator->parameters();
|
|
|
|
$parameters->set('symfony_container_xml_path', '');
|
|
|
|
$services = $containerConfigurator->services();
|
|
|
|
$services->defaults()
|
|
->public()
|
|
->autowire();
|
|
|
|
$services->load('Rector\Symfony\\', __DIR__ . '/../src')
|
|
->exclude(
|
|
[
|
|
__DIR__ . '/../src/Rector/**/*Rector.php',
|
|
__DIR__ . '/../src/Exception/*',
|
|
__DIR__ . '/../src/ValueObject/*',
|
|
__DIR__ . '/../src/PhpDocParser/Ast/PhpDoc/*',
|
|
]
|
|
);
|
|
};
|