Spookie/rector.php

24 lines
782 B
PHP
Raw Normal View History

2022-05-03 14:52:04 +02:00
<?php
declare(strict_types=1);
use Rector\CodeQuality\Rector\Class_\InlineConstructorDefaultToPropertyRector;
2022-05-11 14:48:04 +02:00
use Rector\Core\Configuration\Option;
2022-05-03 14:52:04 +02:00
use Rector\Set\ValueObject\LevelSetList;
2022-05-11 14:48:04 +02:00
use Symfony\Flex\Configurator\ContainerConfigurator;
2022-05-03 14:52:04 +02:00
2022-05-11 14:48:04 +02:00
return static function (ContainerConfigurator $containerConfigurator): void {
// region Symfony Container
$parameters = $containerConfigurator->parameters();
$parameters->set(
Option::SYMFONY_CONTAINER_XML_PATH_PARAMETER,
__DIR__ . '/var/cache/dev/App_KernelDevDebugContainer.xml'
);
// endregion
2022-05-03 14:52:04 +02:00
2022-05-11 14:48:04 +02:00
$containerConfigurator->import(DoctrineSetList::ANNOTATIONS_TO_ATTRIBUTES);
$containerConfigurator->import(SymfonySetList::ANNOTATIONS_TO_ATTRIBUTES);
$containerConfigurator->import(SensiolabsSetList::FRAMEWORK_EXTRA_61);
2022-05-03 14:52:04 +02:00
};