From f2fea52cae616bd76d29fa746c7b6a0fb764a49f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Mon, 22 Feb 2021 19:30:08 +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/Middleware.php | 1 + HttpServer/Route/Node.php | 1 + 2 files changed, 2 insertions(+) diff --git a/HttpServer/Route/Middleware.php b/HttpServer/Route/Middleware.php index baa0c900..897235fc 100644 --- a/HttpServer/Route/Middleware.php +++ b/HttpServer/Route/Middleware.php @@ -73,6 +73,7 @@ class Middleware [$controller, $action] = $node->handler; $attributes = Snowflake::app()->getAttributes(); $annotation = $attributes->getByClass(get_class($controller), $action); + var_dump($annotation); if (count($annotation) < 1) { return; } diff --git a/HttpServer/Route/Node.php b/HttpServer/Route/Node.php index 76f42690..68487653 100644 --- a/HttpServer/Route/Node.php +++ b/HttpServer/Route/Node.php @@ -444,6 +444,7 @@ class Node extends HttpService */ public function restructure(): static { + var_dump($this->handler); if (empty($this->handler)) { return $this; }