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 851b762 commit 2cb9f50Copy full SHA for 2cb9f50
bin/obfuscate
@@ -1,7 +1,17 @@
1
#!/usr/bin/env php
2
<?php
3
4
-include __DIR__ . '/../vendor/autoload.php';
+// Either local or composer installed autoload file
5
+$own = __DIR__ . '/../vendor/autoload.php';
6
+$installed = __DIR__ . '/../../../autoload.php';
7
+
8
+if (file_exists($own)) {
9
+ include $own;
10
+} elseif (file_exists($installed)) {
11
+ include $installed;
12
+} else {
13
+ throw new RuntimeException('Dependencies/Composer not installed');
14
+}
15
16
ini_set('xdebug.max_nesting_level', 2000);
17
0 commit comments