2020-07-18 18:57:24 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
2020-07-29 01:41:20 +02:00
|
|
|
use Rector\Generic\Rector\FuncCall\RemoveFuncCallArgRector;
|
2020-07-18 18:57:24 +02:00
|
|
|
use Rector\Php52\Rector\Property\VarToPublicPropertyRector;
|
|
|
|
use Rector\Php52\Rector\Switch_\ContinueToBreakInSwitchRector;
|
|
|
|
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
|
|
|
|
|
|
|
return static function (ContainerConfigurator $containerConfigurator): void {
|
|
|
|
$services = $containerConfigurator->services();
|
|
|
|
|
|
|
|
$services->set(VarToPublicPropertyRector::class);
|
|
|
|
|
|
|
|
$services->set(ContinueToBreakInSwitchRector::class);
|
|
|
|
|
|
|
|
$services->set(RemoveFuncCallArgRector::class)
|
2020-07-30 00:43:06 +02:00
|
|
|
->call('configure', [[
|
2020-07-30 01:39:41 +02:00
|
|
|
RemoveFuncCallArgRector::ARGUMENT_POSITION_BY_FUNCTION_NAME => [
|
2020-07-30 00:43:06 +02:00
|
|
|
'ldap_first_attribute' => [
|
|
|
|
# see https://www.php.net/manual/en/function.ldap-first-attribute.php
|
|
|
|
2,
|
|
|
|
],
|
2020-07-18 18:57:24 +02:00
|
|
|
],
|
2020-07-30 00:43:06 +02:00
|
|
|
]]);
|
2020-07-18 18:57:24 +02:00
|
|
|
};
|