-
Notifications
You must be signed in to change notification settings - Fork 0
/
rector.php
30 lines (25 loc) · 1.15 KB
/
rector.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?php
declare(strict_types=1);
use Rector\Core\Configuration\Option;
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
use Rector\Set\ValueObject\DowngradeSetList;
define('WP_MIOGEST_SYNC_WORDPRESS_DIR', '../../..');
define('WP_MIOGEST_SYNC_PLUGIN_DIR', WP_MIOGEST_SYNC_WORDPRESS_DIR . '/wp-content/plugins/wp-miogest-sync');
return static function (ContainerConfigurator $containerConfigurator): void {
$parameters = $containerConfigurator->parameters();
$parameters->set(Option::PATHS, [
__DIR__ . '/src',
__DIR__ . '/wp-miogest-sync.php',
__DIR__ . '/sync.php'
]);
$parameters->set(Option::BOOTSTRAP_FILES, [
__DIR__ . '/src/autoload.php',
]);
$containerConfigurator->import(DowngradeSetList::PHP_53);
$containerConfigurator->import(DowngradeSetList::PHP_70);
$containerConfigurator->import(DowngradeSetList::PHP_71);
$containerConfigurator->import(DowngradeSetList::PHP_72);
$containerConfigurator->import(DowngradeSetList::PHP_73);
$containerConfigurator->import(DowngradeSetList::PHP_74);
$containerConfigurator->import(DowngradeSetList::PHP_80);
};