This commit is contained in:
2021-03-05 17:33:16 +08:00
parent 8c10fad9d6
commit c2708470a7
2 changed files with 4 additions and 4 deletions
+3 -4
View File
@@ -321,7 +321,9 @@ class Node extends HttpService
if (empty($annotation)) {
return $node;
}
// var_dump($className, $action, $annotation);
if (str_contains($node->path, 'switch/map')) {
var_dump($className, $action, $annotation);
}
foreach ($annotation as $name => $attribute) {
if ($attribute instanceof \Annotation\Route\Interceptor) {
$node->addInterceptor($attribute->interceptor);
@@ -506,9 +508,6 @@ class Node extends HttpService
} else {
$class = [$class];
}
if (str_contains($this->path,'switch/map')) {
var_dump($class);
}
foreach ($class as $closure) {
if (is_string($closure)) {
$closure = [Snowflake::createObject($closure), 'onHandler'];