bin/retor: load nearest vendor

This commit is contained in:
TomasVotruba 2018-01-06 21:45:09 +01:00
parent ebaa3455de
commit 2d09efcf48

View File

@ -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',
];