2020-07-16 02:01:08 +02:00
|
|
|
<?php
|
|
|
|
|
2021-05-09 20:15:43 +00:00
|
|
|
declare (strict_types=1);
|
2021-05-28 12:08:33 +00:00
|
|
|
namespace RectorPrefix20210528;
|
2020-07-16 02:01:08 +02:00
|
|
|
|
2021-03-12 23:20:25 +01:00
|
|
|
use Rector\Core\Configuration\Option;
|
2020-07-16 02:01:08 +02:00
|
|
|
use Rector\PSR4\Composer\PSR4NamespaceMatcher;
|
|
|
|
use Rector\PSR4\Contract\PSR4AutoloadNamespaceMatcherInterface;
|
2021-05-28 12:08:33 +00:00
|
|
|
use RectorPrefix20210528\Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
|
|
|
return static function (\RectorPrefix20210528\Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator $containerConfigurator) : void {
|
2021-03-12 23:20:25 +01:00
|
|
|
$parameters = $containerConfigurator->parameters();
|
2021-05-10 22:23:08 +00:00
|
|
|
$parameters->set(\Rector\Core\Configuration\Option::TYPES_TO_REMOVE_STATIC_FROM, []);
|
2020-07-16 02:01:08 +02:00
|
|
|
$services = $containerConfigurator->services();
|
2021-05-09 20:15:43 +00:00
|
|
|
$services->defaults()->public()->autowire()->autoconfigure();
|
2021-03-12 23:20:25 +01:00
|
|
|
// psr-4
|
2021-05-10 22:23:08 +00:00
|
|
|
$services->alias(\Rector\PSR4\Contract\PSR4AutoloadNamespaceMatcherInterface::class, \Rector\PSR4\Composer\PSR4NamespaceMatcher::class);
|
2021-05-09 20:15:43 +00:00
|
|
|
$services->load('Rector\\', __DIR__ . '/../rules')->exclude([__DIR__ . '/../rules/*/{ValueObject,Rector,Contract,Exception}']);
|
2020-07-16 02:01:08 +02:00
|
|
|
};
|