We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5703f3c commit ba1afb2Copy full SHA for ba1afb2
1 file changed
bin/dev-tools.php
@@ -21,9 +21,16 @@
21
22
use FastForward\DevTools\Console\DevTools;
23
24
-$projectVendorAutoload = \dirname(__DIR__, 4) . '/vendor/autoload.php';
25
-$pluginVendorAutoload = \dirname(__DIR__) . '/vendor/autoload.php';
+$autoloadCandidates = [\dirname(__DIR__) . '/vendor/autoload.php', \dirname(__DIR__, 4) . '/vendor/autoload.php'];
26
27
-require_once file_exists($projectVendorAutoload) ? $projectVendorAutoload : $pluginVendorAutoload;
+foreach ($autoloadCandidates as $autoloadCandidate) {
+ if (is_file($autoloadCandidate)) {
28
+ require_once $autoloadCandidate;
29
-DevTools::create()->run();
30
+ exit(DevTools::create()->run());
31
+ }
32
+}
33
+
34
+fprintf(\STDERR, "Could not locate Composer autoload.php for fast-forward/dev-tools.\n");
35
36
+exit(1);
0 commit comments