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 289f133 commit 3dde479Copy full SHA for 3dde479
1 file changed
bin/spc
@@ -9,12 +9,12 @@ if (PHP_OS_FAMILY !== 'Windows' && PHP_BINARY !== (__DIR__ . '/php') && file_exi
9
pcntl_exec(__DIR__ . '/php', $argv);
10
}
11
12
-if (file_exists(dirname(__DIR__) . '/vendor/autoload.php')) {
13
- // Current: ./bin (git/project mode)
14
- require_once dirname(__DIR__) . '/vendor/autoload.php';
15
-} else {
+if (file_exists(dirname(__DIR__, 3) . '/autoload.php')) {
16
// Current: ./vendor/crazywhalecc/static-php-cli/bin (composer library mode)
17
require_once dirname(__DIR__, 3) . '/autoload.php';
+} else {
+ // Current: ./bin (git/project mode)
+ require_once dirname(__DIR__) . '/vendor/autoload.php';
18
19
20
// 防止 Micro 打包状态下不支持中文的显示(虽然这个项目目前好像没输出过中文?)
0 commit comments