2021-05-05 21:56:59 +00:00
|
|
|
<?php
|
|
|
|
|
2021-05-09 20:15:43 +00:00
|
|
|
declare (strict_types=1);
|
2021-08-08 00:26:40 +00:00
|
|
|
namespace RectorPrefix20210808;
|
2021-05-05 21:56:59 +00:00
|
|
|
|
|
|
|
use Rector\Core\Configuration\Option;
|
|
|
|
use Rector\Core\ValueObject\PhpVersion;
|
2021-05-06 08:23:37 +00:00
|
|
|
use Rector\DowngradePhp53\Rector\Dir\DirConstToFileConstRector;
|
2021-06-02 10:21:10 +00:00
|
|
|
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
|
|
|
return static function (\Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator $containerConfigurator) : void {
|
2021-05-05 21:56:59 +00:00
|
|
|
$parameters = $containerConfigurator->parameters();
|
2021-05-10 22:23:08 +00:00
|
|
|
$parameters->set(\Rector\Core\Configuration\Option::PHP_VERSION_FEATURES, \Rector\Core\ValueObject\PhpVersion::PHP_53);
|
2021-05-05 21:56:59 +00:00
|
|
|
$services = $containerConfigurator->services();
|
2021-05-10 22:23:08 +00:00
|
|
|
$services->set(\Rector\DowngradePhp53\Rector\Dir\DirConstToFileConstRector::class);
|
2021-05-05 21:56:59 +00:00
|
|
|
};
|