2020-07-18 18:57:24 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
use Rector\Nette\Rector\ClassMethod\TemplateMagicAssignToExplicitVariableArrayRector;
|
2020-07-26 18:34:32 +02:00
|
|
|
use Rector\NetteCodeQuality\Rector\ArrayDimFetch\ChangeControlArrayAccessToAnnotatedControlVariableRector;
|
2020-08-02 00:18:40 +02:00
|
|
|
use Rector\NetteCodeQuality\Rector\Assign\ArrayAccessGetControlToGetComponentMethodCallRector;
|
|
|
|
use Rector\NetteCodeQuality\Rector\Assign\ArrayAccessSetControlToAddComponentMethodCallRector;
|
2020-07-26 18:34:32 +02:00
|
|
|
use Rector\NetteCodeQuality\Rector\Assign\MakeGetComponentAssignAnnotatedRector;
|
2020-07-18 18:57:24 +02:00
|
|
|
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
|
|
|
|
|
|
|
return static function (ContainerConfigurator $containerConfigurator): void {
|
|
|
|
$services = $containerConfigurator->services();
|
|
|
|
|
|
|
|
$services->set(TemplateMagicAssignToExplicitVariableArrayRector::class);
|
2020-07-25 11:40:57 +02:00
|
|
|
|
|
|
|
$services->set(MakeGetComponentAssignAnnotatedRector::class);
|
2020-07-26 13:58:13 +02:00
|
|
|
|
|
|
|
$services->set(ChangeControlArrayAccessToAnnotatedControlVariableRector::class);
|
2020-07-30 20:37:08 +02:00
|
|
|
|
2020-08-02 00:18:40 +02:00
|
|
|
$services->set(ArrayAccessSetControlToAddComponentMethodCallRector::class);
|
|
|
|
|
|
|
|
$services->set(ArrayAccessGetControlToGetComponentMethodCallRector::class);
|
2020-07-18 18:57:24 +02:00
|
|
|
};
|