改名
This commit is contained in:
@@ -45,11 +45,6 @@ use Snowflake\Snowflake;
|
|||||||
|
|
||||||
$node = $router->addRoute($this->uri, $handler, $this->method);
|
$node = $router->addRoute($this->uri, $handler, $this->method);
|
||||||
$node::annotationInject($node, get_class($handler[0]), $handler[1]);
|
$node::annotationInject($node, get_class($handler[0]), $handler[1]);
|
||||||
|
|
||||||
if ($this->uri == 'switch/map') {
|
|
||||||
var_dump($node);
|
|
||||||
}
|
|
||||||
|
|
||||||
return $router;
|
return $router;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -321,6 +321,7 @@ class Node extends HttpService
|
|||||||
if (empty($annotation)) {
|
if (empty($annotation)) {
|
||||||
return $node;
|
return $node;
|
||||||
}
|
}
|
||||||
|
var_dump($className, $action, $annotation);
|
||||||
foreach ($annotation as $name => $attribute) {
|
foreach ($annotation as $name => $attribute) {
|
||||||
if ($attribute instanceof \Annotation\Route\Interceptor) {
|
if ($attribute instanceof \Annotation\Route\Interceptor) {
|
||||||
$node->addInterceptor($attribute->interceptor);
|
$node->addInterceptor($attribute->interceptor);
|
||||||
|
|||||||
Reference in New Issue
Block a user