Skip to content

Commit c0e1c96

Browse files
committed
Fix path to composer autoloader when being installed as a dependency
1 parent b2ccc18 commit c0e1c96

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

bin/php-src-devtools

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@
44
use Aboks\PhpSrcDevtools\Application;
55
use Symfony\Component\Console\Input\ArgvInput;
66

7-
require_once __DIR__ . '/../vendor/autoload.php';
7+
if (is_file(__DIR__ . '/../../../autoload.php')) {
8+
require_once __DIR__ . '/../../../autoload.php';
9+
} else {
10+
require_once __DIR__ . '/../vendor/autoload.php';
11+
}
812

913
$input = new ArgvInput();
1014
$input->setStream(STDIN);

0 commit comments

Comments
 (0)