mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-18 05:48:21 +01:00
f67369735a
* add init command * update as per CI review * update as per CI review 2 * update as per CI review 3 * update as per testing command * update as per CI review
26 lines
694 B
Plaintext
26 lines
694 B
Plaintext
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
use Rector\Core\Configuration\Option;
|
|
use Rector\Set\ValueObject\SetList;
|
|
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
|
|
|
return static function (ContainerConfigurator $containerConfigurator): void {
|
|
|
|
// get parameters
|
|
$parameters = $containerConfigurator->parameters();
|
|
|
|
// Define what rule sets will be applied
|
|
$parameters->set(Option::SETS, [
|
|
SetList::NAMING,
|
|
SetList::CODE_QUALITY,
|
|
]);
|
|
|
|
// get services (needed for register a single rule)
|
|
// $services = $containerConfigurator->services();
|
|
|
|
// register a single rule
|
|
// $services->set(TypedPropertyRector::class);
|
|
};
|