Ensure autoloader is loaded in globally installed Rector (#1683)

* ensure autoloader is loaded in globally installed Rector

* change approach to see if unit tests are happier

* [TypeDeclaration] Add symfony route annotation support (#1580)

* temporary pin symplify/easy-ci to 10.0.9

Co-authored-by: Tomas Votruba <tomas.vot@gmail.com>
Co-authored-by: Abdul Malik Ikhsan <samsonasik@gmail.com>
This commit is contained in:
Phil E. Taylor 2022-01-16 01:31:20 +00:00 committed by GitHub
parent 99da81012c
commit 72de31e70f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

@ -91,10 +91,13 @@ final class AutoloadIncluder
/**
* In case Rector is installed as vendor dependency,
* this autoloads the project vendor/autoload.php, including Rector
*
* This also accounts for running a globally installed Rector from the global composer vendor dir
*/
public function autoloadProjectAutoloaderFile(): void
{
$this->loadIfExistsAndNotLoadedYet(__DIR__ . '/../../../autoload.php');
$this->loadIfExistsAndNotLoadedYet(getcwd() . '/vendor/autoload.php');
}
public function autoloadFromCommandLine(): void

View File

@ -74,7 +74,7 @@
"rector/phpstan-rules": "^0.4.15",
"spatie/enum": "^3.10",
"symplify/coding-standard": "^10.0.9",
"symplify/easy-ci": "^10.0.9",
"symplify/easy-ci": "10.0.9",
"symplify/easy-coding-standard": "^10.0.9",
"symplify/easy-testing": "^10.0.9",
"symplify/monorepo-builder": "^10.0.9",