Skip to content

Commit 54102f0

Browse files
committed
feat: support micro sapi mode
1 parent 202cef4 commit 54102f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/AbstractApplication.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ public function copy(): self
431431
protected function runtimeCheck(): void
432432
{
433433
// check env
434-
if (!in_array(PHP_SAPI, ['cli', 'phpdbg', 'cli-server'], true)) {
434+
if (!in_array(PHP_SAPI, ['cli', 'phpdbg', 'cli-server', 'micro'], true)) {
435435
header('HTTP/1.1 403 Forbidden');
436436
exit(" 403 Forbidden \n\n" . " current environment is CLI. \n" . " :( Sorry! Run this script is only allowed in the terminal environment!\n,You are not allowed to access this file.\n");
437437
}

0 commit comments

Comments
 (0)