We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9b998c7 commit 522ad29Copy full SHA for 522ad29
bin/yokephp
@@ -2,7 +2,15 @@
2
<?php
3
4
// Include composer auto-loader.
5
-require __DIR__.'/../vendor/autoload.php';
+$localPath = __DIR__.'/../vendor/autoload.php'; // Development Path
6
+$globalPath = __DIR__.'/../../../autoload.php'; // Global Path
7
+
8
+// Import the correct file
9
+if (file_exists($globalPath)) {
10
+ require $globalPath;
11
+} else {
12
+ require $localPath;
13
+}
14
15
// Imports for shorter code.
16
use Symfony\Component\Console\Application;
0 commit comments