Skip to content

Commit 522ad29

Browse files
author
Diego Hernandes
committed
fixing paths
1 parent 9b998c7 commit 522ad29

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

bin/yokephp

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,15 @@
22
<?php
33

44
// Include composer auto-loader.
5-
require __DIR__.'/../vendor/autoload.php';
5+
$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+
}
614

715
// Imports for shorter code.
816
use Symfony\Component\Console\Application;

0 commit comments

Comments
 (0)