From 3ef83c3f6282b201fdd591086fe8f92d0b147a99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Fri, 5 Mar 2021 17:03:15 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HttpServer/Route/Node.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/HttpServer/Route/Node.php b/HttpServer/Route/Node.php index 663bcab4..e4993673 100644 --- a/HttpServer/Route/Node.php +++ b/HttpServer/Route/Node.php @@ -298,12 +298,12 @@ class Node extends HttpService */ private function annotationInject(string $className, string $action): static { - $attributes = Snowflake::app()->getAttributes(); - $annotation = $attributes->getMethods($className, $action); + $annotation = annotation()->getMethods($className, $action); if (empty($annotation)) { return $this; } foreach ($annotation as $name => $attribute) { + var_dump(get_class($attribute)); if ($attribute instanceof \Annotation\Route\Interceptor) { $this->addInterceptor($attribute->interceptor); }