mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-31 12:42:05 +01:00
bootstrap: add autoload paths comments
This commit is contained in:
parent
e1148ad3fd
commit
01d5d397e1
@ -4,7 +4,10 @@
|
||||
* This allows to load "vendor/autoload.php" both from
|
||||
* "composer create-project ..." and "composer require" installation.
|
||||
*/
|
||||
$possibleAutoloadPaths = [__DIR__ . '/../vendor/autoload.php', __DIR__ . '/../../../vendor/autoload.php'];
|
||||
$possibleAutoloadPaths = [
|
||||
__DIR__ . '/../vendor/autoload.php', // composer require ... | repository
|
||||
__DIR__ . '/../../../vendor/autoload.php' // composer create-project
|
||||
];
|
||||
|
||||
foreach ($possibleAutoloadPaths as $possibleAutoloadPath) {
|
||||
if (is_file($possibleAutoloadPath)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user