From 1ba07aeb5f2366ffc2a83779a3424aa12a2aefb5 Mon Sep 17 00:00:00 2001 From: "as2252258@163.com" Date: Tue, 21 Sep 2021 00:50:15 +0800 Subject: [PATCH] 111 --- http-handler/Abstracts/Handler.php | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/http-handler/Abstracts/Handler.php b/http-handler/Abstracts/Handler.php index 32d5fc03..a04f47a6 100644 --- a/http-handler/Abstracts/Handler.php +++ b/http-handler/Abstracts/Handler.php @@ -22,7 +22,6 @@ abstract class Handler implements RequestHandlerInterface - #[Inject(AspectProxy::class)] protected AspectProxy $aspectProxy; @@ -32,15 +31,7 @@ abstract class Handler implements RequestHandlerInterface */ public function __construct(public CHl $handler,public ?array $middlewares) { - } - - - /** - * @param \Kiri\Proxy\AspectProxy $aspectProxy - */ - public function setAspectProxy(AspectProxy $aspectProxy) - { - $this->aspectProxy = $aspectProxy; + $this->aspectProxy = Kiri::getDi()->get(AspectProxy::class); }