From d3df9043e35b72479436838c7328bfbca88c7a4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Fri, 30 Apr 2021 10:58: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/Abstracts/Callback.php | 3 +-- HttpServer/Command.php | 6 +++--- HttpServer/Shutdown.php | 1 - 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/HttpServer/Abstracts/Callback.php b/HttpServer/Abstracts/Callback.php index c2ee7f7b..774cc656 100644 --- a/HttpServer/Abstracts/Callback.php +++ b/HttpServer/Abstracts/Callback.php @@ -72,8 +72,7 @@ abstract class Callback extends HttpService * @param $data * @param $reID * @return Request - * @throws ReflectionException - * @throws NotFindClassException + * @throws Exception */ protected function _request($fd, $data, $reID): Request { diff --git a/HttpServer/Command.php b/HttpServer/Command.php index b0fc3abf..098e3385 100644 --- a/HttpServer/Command.php +++ b/HttpServer/Command.php @@ -39,9 +39,9 @@ class Command extends \Console\Command if (!in_array($dtl->get('action'), self::ACTIONS)) { return 'I don\'t know what I want to do.'; } - if (!file_exists(storage('runtime.php'))) { - exec(PHP_BINARY . ' snowflake runtime:builder'); - } + + exec(PHP_BINARY . ' ' . APP_PATH . 'snowflake runtime:builder'); + /** @var Shutdown $shutdown */ $shutdown = Snowflake::app()->get('shutdown'); if ($shutdown->isRunning() && $dtl->get('action') == 'start') { diff --git a/HttpServer/Shutdown.php b/HttpServer/Shutdown.php index 333d5871..1a55ded5 100644 --- a/HttpServer/Shutdown.php +++ b/HttpServer/Shutdown.php @@ -106,7 +106,6 @@ class Shutdown extends Component /** * @param string $path * @return bool - * @throws ConfigException */ public function directoryCheck(string $path): bool {