This commit is contained in:
as2252258@163.com
2021-09-04 00:12:44 +08:00
parent 78bfeb6e29
commit 8f919ffa1b
+2 -1
View File
@@ -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;
}