mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-05 20:57:12 +00:00
22 lines
788 B
PHP
22 lines
788 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
use Rector\Core\Configuration\Option;
|
|
use Rector\Php74\Rector\Closure\ClosureToArrowFunctionRector;
|
|
use Rector\Php74\Rector\Property\TypedPropertyRector;
|
|
use Rector\Set\ValueObject\LevelSetList;
|
|
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
|
|
|
return static function (ContainerConfigurator $containerConfigurator): void
|
|
{
|
|
$containerConfigurator->import(LevelSetList::UP_TO_PHP_80);
|
|
|
|
$parameters = $containerConfigurator->parameters();
|
|
$parameters->set(Option::AUTO_IMPORT_NAMES, true);
|
|
$parameters->set(Option::IMPORT_SHORT_CLASSES, false);
|
|
|
|
$services = $containerConfigurator->services();
|
|
$services->set(TypedPropertyRector::class);
|
|
$services->set(ClosureToArrowFunctionRector::class);
|
|
};
|