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 88e3686 commit d78eda7Copy full SHA for d78eda7
phpbcc
@@ -2,9 +2,15 @@
2
<?php
3
4
$rootDir = dirname(__FILE__);
5
-$autoloader = $rootDir . "/vendor/autoload.php";
+$autoloader = $rootDir . "/../../autoload.php";
6
7
-if (!file_exists($autoloader)) {
+if (file_exists($rootDir . "/../../autoload.php")) {
8
+ $autoloader = $rootDir . "/../../autoload.php";
9
+} elseif (file_exists($rootDir . "/vendor/autoload.php")) {
10
+ $autoloader = $rootDir . "/vendor/autoload.php";
11
+}
12
+
13
+if (!$autoloader) {
14
throw new Exception('You need to run composer to create the autoloader.');
15
}
16
0 commit comments