From 8f919ffa1b7357aa6ac1f40c3248ce39ff0ce548 Mon Sep 17 00:00:00 2001 From: "as2252258@163.com" Date: Sat, 4 Sep 2021 00:12:44 +0800 Subject: [PATCH] 111 --- http-helper/Route/Node.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/http-helper/Route/Node.php b/http-helper/Route/Node.php index 12cbc958..3625c986 100644 --- a/http-helper/Route/Node.php +++ b/http-helper/Route/Node.php @@ -10,6 +10,7 @@ use Closure; use Exception; use Http\Exception\RequestException; use JetBrains\PhpStorm\Pure; +use Kiri\Di\NoteManager; use Kiri\Events\EventProvider; use Kiri\Exception\NotFindClassException; use Kiri\IAspect; @@ -255,7 +256,7 @@ class Node } /** @var Aspect $aspect */ - $aspect = Kiri::getDi()->getMethodByAnnotation(Aspect::class, $controller, $action); + $aspect = NoteManager::getMethodByAnnotation(Aspect::class, $controller, $action); if (empty($aspect)) { return null; }