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 9d96e1c commit 21381e5Copy full SHA for 21381e5
sweet-qa
@@ -1,7 +1,15 @@
1
#!/usr/bin/env php
2
<?php
3
chdir(__DIR__);
4
-require_once 'vendor/autoload.php';
+if (file_exists('../../autoload.php')) {
5
+ require_once '../../autoload.php';
6
+} elseif (file_exists('../vendor/autoload.php')) {
7
+ require_once '../vendor/autoload.php';
8
+} elseif (file_exists('vendor/autoload.php')) {
9
+ require_once 'vendor/autoload.php';
10
+} else {
11
+ throw new \RuntimeException('Could not find the autoloader.');
12
+}
13
14
use Symfony\Component\Console\Application;
15
use Twogether\SweetQA\Command as Commands;
0 commit comments