add utils/Rector to path to run rector

This commit is contained in:
Abdul Malik Ikhsan 2021-03-31 23:12:39 +07:00
parent 4e3b632e55
commit d158ba1a6d
No known key found for this signature in database
GPG Key ID: 80035E72114C7548

View File

@ -28,7 +28,7 @@ return static function (ContainerConfigurator $containerConfigurator): void {
$parameters = $containerConfigurator->parameters(); $parameters = $containerConfigurator->parameters();
// paths to refactor; solid alternative to CLI arguments // paths to refactor; solid alternative to CLI arguments
$parameters->set(Option::PATHS, [__DIR__ . '/app', __DIR__ . '/system', __DIR__ . '/tests']); $parameters->set(Option::PATHS, [__DIR__ . '/app', __DIR__ . '/system', __DIR__ . '/tests', __DIR__ . '/utils/Rector']);
// do you need to include constants, class aliases or custom autoloader? files listed will be executed // do you need to include constants, class aliases or custom autoloader? files listed will be executed
$parameters->set(Option::BOOTSTRAP_FILES, [ $parameters->set(Option::BOOTSTRAP_FILES, [