collection-crud/tools/ecs.php

20 lines
600 B
PHP
Raw Normal View History

2022-03-03 10:19:01 -05:00
<?php declare(strict_types=1);
use PhpCsFixer\Fixer\Strict\DeclareStrictTypesFixer;
use Rector\Core\Configuration\Option;
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
require_once __DIR__ . '/common.inc.php';
return static function (ContainerConfigurator $config): void {
$parameters = $config->parameters();
$services = $config->services();
walk_array([$services, 'set'], [
DeclareStrictTypesFixer::class,
]);
$parameters->set(Option::PARALLEL, true);
$parameters->set(Option::PATHS, [__DIR__ . '/../src', __DIR__]);
};