mirror of
https://github.com/rectorphp/rector.git
synced 2025-02-23 19:24:48 +01:00
25 lines
754 B
PHP
25 lines
754 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
use Rector\Doctrine\Contract\Mapper\DoctrineEntityAndRepositoryMapperInterface;
|
|
use Rector\Doctrine\Mapper\DefaultDoctrineEntityAndRepositoryMapper;
|
|
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
|
|
|
return static function (ContainerConfigurator $containerConfigurator): void {
|
|
$services = $containerConfigurator->services();
|
|
|
|
$services->defaults()
|
|
->public()
|
|
->autowire()
|
|
->autoconfigure();
|
|
|
|
$services->load('Rector\Doctrine\\', __DIR__ . '/../src')
|
|
->exclude([__DIR__ . '/../src/Rector/*']);
|
|
|
|
$services->alias(
|
|
DoctrineEntityAndRepositoryMapperInterface::class,
|
|
DefaultDoctrineEntityAndRepositoryMapper::class
|
|
);
|
|
};
|