We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fd7b93f commit db4c968Copy full SHA for db4c968
bin/build
@@ -4,13 +4,10 @@ use Gt\Build\Command\RunCommand;
4
use Gt\Cli\Application;
5
use Gt\Cli\Argument\CommandArgumentList;
6
7
-$autoloadLocations = [
8
- __DIR__ . "/../../../autoload.php",
9
- __DIR__ . "/../vendor/autoload.php",
10
-];
11
-foreach($autoloadLocations as $location) {
12
- if(file_exists($location)) {
13
- require($location);
+foreach([ __DIR__ . "/../../..", __DIR__ . "/../vendor" ] as $vendor) {
+ $autoload = "$vendor/autoload.php";
+ if(file_exists($autoload)) {
+ require($autoload);
14
break;
15
}
16
0 commit comments