Add additional paths for autoload.php check

This commit is contained in:
Anton Medvedev 2021-10-18 18:10:01 +02:00
parent 01b0fcf0f2
commit 74ddca8e16

View File

@ -59,10 +59,12 @@ foreach ($binaries as $binary) {
$autoload = [
__DIR__ . '/../vendor/autoload.php', // The dep located at "deployer.phar/bin" or in development.
__DIR__ . '/../../../autoload.php', // The dep located at "vendor/deployer/deployer/bin".
__DIR__ . '/../autoload.php', // The dep located at "vendor/bin".
];
$includes = [
__DIR__ . '/..',
__DIR__ . '/../../../deployer/deployer',
__DIR__ . '/../deployer/deployer',
];
$includePath = false;
for ($i = 0; $i < count($autoload); $i++) {