This commit is contained in:
as2252258@163.com
2021-09-21 00:50:15 +08:00
parent cfbed0396e
commit 1ba07aeb5f
+1 -10
View File
@@ -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);
}