Skip to content

Commit 100af6e

Browse files
committed
Add autoload directory within vendor
1 parent 1ac3ce0 commit 100af6e

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

bin/console

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,13 @@
1212

1313
declare(strict_types=1);
1414

15-
require dirname(__DIR__).'/vendor/autoload.php';
15+
$autoload = dirname(__DIR__).'/vendor/autoload.php';
16+
17+
if (!file_exists($autoload)) {
18+
$autoload = dirname(__DIR__, 4).'/vendor/autoload.php';
19+
}
20+
21+
require $autoload;
1622

1723
use Ahc\Cli\Application;
1824
use Ixnode\PhpDateParser\Command\ParserCommand;

0 commit comments

Comments
 (0)