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 {