bootstrap: add autoload paths comments

This commit is contained in:
TomasVotruba 2017-09-26 11:11:59 +02:00
parent e1148ad3fd
commit 01d5d397e1

View File

@ -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)) {