This commit is contained in:
2021-03-05 17:14:15 +08:00
parent 0da515b3a7
commit 7ce90e5805
2 changed files with 1 additions and 5 deletions
-5
View File
@@ -45,11 +45,6 @@ use Snowflake\Snowflake;
$node = $router->addRoute($this->uri, $handler, $this->method);
$node::annotationInject($node, get_class($handler[0]), $handler[1]);
if ($this->uri == 'switch/map') {
var_dump($node);
}
return $router;
}
+1
View File
@@ -321,6 +321,7 @@ class Node extends HttpService
if (empty($annotation)) {
return $node;
}
var_dump($className, $action, $annotation);
foreach ($annotation as $name => $attribute) {
if ($attribute instanceof \Annotation\Route\Interceptor) {
$node->addInterceptor($attribute->interceptor);