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 {