From c5150771eda36d35df24a476d64480d234620112 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Wed, 9 Sep 2020 10:50:44 +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/Annotation/Annotation.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/HttpServer/Route/Annotation/Annotation.php b/HttpServer/Route/Annotation/Annotation.php index 63136a57..8342d6d3 100644 --- a/HttpServer/Route/Annotation/Annotation.php +++ b/HttpServer/Route/Annotation/Annotation.php @@ -178,7 +178,7 @@ class Annotation extends \Snowflake\Annotation\Annotation [$keyName, $matchs] = $annotation; foreach ($explode as $middleware) { - $middleware = 'App\Http\Interceptor\\' . $middleware; + $middleware = 'App\Http\After\\' . $middleware; if (!class_exists($middleware)) { continue; } @@ -186,7 +186,7 @@ class Annotation extends \Snowflake\Annotation\Annotation if (!($middleware instanceof Interceptor)) { continue; } - $node->addAfter([$middleware, 'Interceptor']); + $node->addAfter([$middleware, 'onHandler']); } }