mirror of
https://github.com/rectorphp/rector.git
synced 2024-06-15 23:52:23 +00:00
bin/retor: load nearest vendor
This commit is contained in:
parent
ebaa3455de
commit
2d09efcf48
|
@ -1,14 +1,10 @@
|
|||
<?php declare(strict_types=1);
|
||||
|
||||
/**
|
||||
* This allows to load "vendor/autoload.php" both from
|
||||
* "composer create-project ..." and "composer require" installation.
|
||||
*/
|
||||
$possibleAutoloadPaths = [
|
||||
// load from nearest vendor
|
||||
getcwd() . '/vendor/autoload.php',
|
||||
// repository
|
||||
__DIR__ . '/../vendor/autoload.php',
|
||||
// composer create-project
|
||||
__DIR__ . '/../vendor/autoload.php',
|
||||
// composer require
|
||||
__DIR__ . '/../../../../vendor/autoload.php',
|
||||
];
|
||||
|
|
Loading…
Reference in New Issue
Block a user