mirror of
https://github.com/rectorphp/rector.git
synced 2025-02-11 19:15:10 +01:00
25 lines
1.1 KiB
PHP
25 lines
1.1 KiB
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
use Rector\Nette\Rector\ClassMethod\TemplateMagicAssignToExplicitVariableArrayRector;
|
|
use Rector\NetteCodeQuality\Rector\ArrayDimFetch\ChangeControlArrayAccessToAnnotatedControlVariableRector;
|
|
use Rector\NetteCodeQuality\Rector\Assign\ArrayAccessGetControlToGetComponentMethodCallRector;
|
|
use Rector\NetteCodeQuality\Rector\Assign\ArrayAccessSetControlToAddComponentMethodCallRector;
|
|
use Rector\NetteCodeQuality\Rector\Assign\MakeGetComponentAssignAnnotatedRector;
|
|
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
|
|
|
return static function (ContainerConfigurator $containerConfigurator): void {
|
|
$services = $containerConfigurator->services();
|
|
|
|
$services->set(TemplateMagicAssignToExplicitVariableArrayRector::class);
|
|
|
|
$services->set(MakeGetComponentAssignAnnotatedRector::class);
|
|
|
|
$services->set(ChangeControlArrayAccessToAnnotatedControlVariableRector::class);
|
|
|
|
$services->set(ArrayAccessSetControlToAddComponentMethodCallRector::class);
|
|
|
|
$services->set(ArrayAccessGetControlToGetComponentMethodCallRector::class);
|
|
};
|