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 @@