From 4cd297bf87973a7bc1efeb77316d26710349c8b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Tue, 26 Oct 2021 10:56:03 +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 --- http-core/Constrict/Request.php | 2 +- http-core/Constrict/Response.php | 2 +- http-core/Server.php | 4 +--- {http-server => kiri-engine}/Abstracts/BaseContext.php | 2 +- kiri-engine/Cache/Base/Redis.php | 2 +- {http-server => kiri-engine}/Context.php | 4 ++-- kiri-engine/Pool/Connection.php | 2 +- kiri-engine/Pool/Pool.php | 2 +- kiri-engine/Pool/Redis.php | 2 +- 9 files changed, 10 insertions(+), 12 deletions(-) rename {http-server => kiri-engine}/Abstracts/BaseContext.php (81%) rename {http-server => kiri-engine}/Context.php (98%) diff --git a/http-core/Constrict/Request.php b/http-core/Constrict/Request.php index 79a3197c..a1c5861b 100644 --- a/http-core/Constrict/Request.php +++ b/http-core/Constrict/Request.php @@ -2,7 +2,7 @@ namespace Http\Constrict; -use Server\Context; +use Kiri\Context; use Http\Handler\AuthIdentity; use JetBrains\PhpStorm\Pure; use Kiri\Kiri; diff --git a/http-core/Constrict/Response.php b/http-core/Constrict/Response.php index f4021e4e..21b1ab67 100644 --- a/http-core/Constrict/Response.php +++ b/http-core/Constrict/Response.php @@ -4,7 +4,7 @@ namespace Http\Constrict; -use Server\Context; +use Kiri\Context; use Http\Message\ContentType; use JetBrains\PhpStorm\Pure; use Kiri\Abstracts\Config; diff --git a/http-core/Server.php b/http-core/Server.php index ea061d8a..29527773 100644 --- a/http-core/Server.php +++ b/http-core/Server.php @@ -11,7 +11,6 @@ use Http\Abstracts\ResponseHelper; use Http\Constrict\RequestInterface; use Http\Constrict\ResponseEmitter; use Http\Constrict\ResponseInterface; -use Http\Events\OnAfterRequest; use Http\Handler\Abstracts\HandlerManager; use Http\Handler\Dispatcher; use Http\Handler\Handler; @@ -21,9 +20,8 @@ use Http\Message\Stream; use Kiri\Abstracts\Config; use Kiri\Di\ContainerInterface; use Kiri\Exception\ConfigException; -use Kiri\Kiri; use Psr\Http\Message\ServerRequestInterface; -use Server\Context; +use Kiri\Context; use Swoole\Http\Request; use Swoole\Http\Response; diff --git a/http-server/Abstracts/BaseContext.php b/kiri-engine/Abstracts/BaseContext.php similarity index 81% rename from http-server/Abstracts/BaseContext.php rename to kiri-engine/Abstracts/BaseContext.php index c2ece6c6..ca21f946 100644 --- a/http-server/Abstracts/BaseContext.php +++ b/kiri-engine/Abstracts/BaseContext.php @@ -1,7 +1,7 @@