改名
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user