From 660b1a9bec7283fc09c1856da401c738413ef101 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Wed, 22 Jun 2022 17:42:17 +0800 Subject: [PATCH] modify plugin name --- Abstracts/AsyncServer.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Abstracts/AsyncServer.php b/Abstracts/AsyncServer.php index 2dc2f4a..7f6ddfe 100644 --- a/Abstracts/AsyncServer.php +++ b/Abstracts/AsyncServer.php @@ -5,6 +5,7 @@ namespace Kiri\Server\Abstracts; use Exception; use Kiri; use Kiri\Abstracts\Config; +use Kiri\Core\Json; use Kiri\Di\ContainerInterface; use Kiri\Exception\ConfigException; use Kiri\Server\Events\OnBeforeShutdown; @@ -202,6 +203,7 @@ class AsyncServer implements ServerInterface public function onSigint(): void { try { + file_put_contents('php://output', Json::encode(func_get_args())); $this->shutdown(); } catch (\Throwable $exception) { $this->logger->error($exception->getMessage());