From 8adf4b91b6d7841b693b8fdfa36049decfdf6f5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Tue, 18 May 2021 14:13:46 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HttpServer/Command.php | 2 +- System/Process/ServerInotify.php | 2 +- System/Snowflake.php | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/HttpServer/Command.php b/HttpServer/Command.php index 7fc29003..aa092dde 100644 --- a/HttpServer/Command.php +++ b/HttpServer/Command.php @@ -62,7 +62,7 @@ class Command extends \Console\Command */ private function generate_runtime_builder() { - exec(PHP_BINARY . ' snowflake runtime:builder'); + exec(PHP_BINARY . ' ' . APP_PATH . 'snowflake runtime:builder'); } } diff --git a/System/Process/ServerInotify.php b/System/Process/ServerInotify.php index 43b8632a..6ee2b3b6 100644 --- a/System/Process/ServerInotify.php +++ b/System/Process/ServerInotify.php @@ -249,7 +249,7 @@ class ServerInotify extends Process */ public function trigger_reload() { - exec(PHP_BINARY . ' snowflake runtime:builder', $output); + exec(PHP_BINARY . ' ' . APP_PATH . 'snowflake runtime:builder', $output); var_dump(implode(PHP_EOL, $output)); diff --git a/System/Snowflake.php b/System/Snowflake.php index 41520380..3ce90d46 100644 --- a/System/Snowflake.php +++ b/System/Snowflake.php @@ -533,6 +533,7 @@ class Snowflake * @param string $event * @param null $data * @return false|string + * @throws Exception */ public static function param(string $event, $data = NULL): bool|string {