25 lines
523 B
PHP
25 lines
523 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
use Rector\Config\RectorConfig;
|
|
|
|
return RectorConfig::configure()
|
|
->withPaths([
|
|
__DIR__.'/src',
|
|
__DIR__.'/tests',
|
|
])
|
|
->withImportNames(
|
|
importShortClasses: false,
|
|
removeUnusedImports: true,
|
|
)
|
|
->withComposerBased(
|
|
doctrine: true,
|
|
symfony: true,
|
|
)
|
|
->withSymfonyContainerXml(
|
|
__DIR__.'/var/cache/dev/App_KernelDevDebugContainer.xml'
|
|
)
|
|
->withFluentCallNewLine()
|
|
->withCache(__DIR__.'/var/rector');
|