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; }