This commit is contained in:
2020-09-09 10:51:25 +08:00
parent c5150771ed
commit 45f31df319
+2 -1
View File
@@ -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']);