Skip to content

Commit e83522e

Browse files
committed
update bin autoload
1 parent a20c176 commit e83522e

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

bin/bgawb.php

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
<?php
22

3-
require __DIR__ . '/../vendor/autoload.php';
3+
$autoloadFiles = [
4+
__DIR__ . '/../vendor/autoload.php',
5+
__DIR__ . '/../../../autoload.php'
6+
];
7+
foreach ($autoloadFiles as $autoloadFile) {
8+
if (file_exists($autoloadFile)) {
9+
require_once($autoloadFile);
10+
break;
11+
}
12+
}
413

514
use BGAWorkbench\Commands\BuildCommand;
615
use BGAWorkbench\Commands\ValidateCommand;

0 commit comments

Comments
 (0)