mirror of
https://github.com/rectorphp/rector.git
synced 2025-02-23 11:14:38 +01:00
21 lines
603 B
PHP
21 lines
603 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('project_directory', null);
|
|
|
|
$services = $containerConfigurator->services();
|
|
|
|
$services->defaults()
|
|
->public()
|
|
->autowire()
|
|
->autoconfigure();
|
|
|
|
$services->load('Rector\NetteToSymfony\\', __DIR__ . '/../src')
|
|
->exclude([__DIR__ . '/../src/Rector', __DIR__ . '/../src/ValueObject']);
|
|
};
|