rector/rules/psr4/config/config.php
2020-09-15 11:16:43 +02:00

22 lines
663 B
PHP

<?php
declare(strict_types=1);
use Rector\PSR4\Composer\PSR4NamespaceMatcher;
use Rector\PSR4\Contract\PSR4AutoloadNamespaceMatcherInterface;
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
return static function (ContainerConfigurator $containerConfigurator): void {
$services = $containerConfigurator->services();
$services->defaults()
->public()
->autowire()
->autoconfigure();
$services->load('Rector\PSR4\\', __DIR__ . '/../src')
->exclude([__DIR__ . '/../src/Rector']);
$services->alias(PSR4AutoloadNamespaceMatcherInterface::class, PSR4NamespaceMatcher::class);
};