From 640d12269d2a369fe59181c9bda383598e1a1206 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Mon, 27 Sep 2021 16:29:07 +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-handler/Abstracts/Handler.php | 8 -------- http-handler/Pipeline.php | 1 - 2 files changed, 9 deletions(-) diff --git a/http-handler/Abstracts/Handler.php b/http-handler/Abstracts/Handler.php index e58c618b..1ac881fd 100644 --- a/http-handler/Abstracts/Handler.php +++ b/http-handler/Abstracts/Handler.php @@ -7,8 +7,6 @@ use Exception; use Http\Handler\Handler as CHl; use Http\Message\ServerRequest; use Kiri\Core\Help; -use Kiri\Kiri; -use Kiri\Proxy\AspectProxy; use Psr\Http\Message\ResponseInterface; use Psr\Http\Message\ServerRequestInterface; use Psr\Http\Server\MiddlewareInterface; @@ -18,11 +16,6 @@ use Psr\Http\Server\RequestHandlerInterface; abstract class Handler implements RequestHandlerInterface { - - #[Inject(AspectProxy::class)] - protected AspectProxy $aspectProxy; - - protected int $offset = 0; @@ -32,7 +25,6 @@ abstract class Handler implements RequestHandlerInterface */ public function __construct(public CHl $handler, public ?array $middlewares) { - $this->aspectProxy = Kiri::getDi()->get(AspectProxy::class); } diff --git a/http-handler/Pipeline.php b/http-handler/Pipeline.php index 05149cab..7a74c389 100644 --- a/http-handler/Pipeline.php +++ b/http-handler/Pipeline.php @@ -70,7 +70,6 @@ class Pipeline * 执行 * @param callable $destination * @return static - * @throws ReflectionException */ public function then(callable $destination): static {