From 45f31df319b207cffded93b2a20bff7324dcb3c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Wed, 9 Sep 2020 10:51:25 +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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/HttpServer/Route/Annotation/Annotation.php b/HttpServer/Route/Annotation/Annotation.php index 8342d6d3..f3ba7ea4 100644 --- a/HttpServer/Route/Annotation/Annotation.php +++ b/HttpServer/Route/Annotation/Annotation.php @@ -3,6 +3,7 @@ namespace HttpServer\Route\Annotation; +use HttpServer\IInterface\After; use HttpServer\IInterface\Interceptor; use HttpServer\IInterface\Limits; use HttpServer\Route\Node; @@ -183,7 +184,7 @@ class Annotation extends \Snowflake\Annotation\Annotation continue; } $middleware = Snowflake::createObject($middleware); - if (!($middleware instanceof Interceptor)) { + if (!($middleware instanceof After)) { continue; } $node->addAfter([$middleware, 'onHandler']);