This commit is contained in:
2021-02-22 19:32:14 +08:00
parent f2fea52cae
commit ca7218c97e
2 changed files with 1 additions and 1 deletions
+1
View File
@@ -152,6 +152,7 @@ class Annotation extends Component
continue; continue;
} }
var_dump($tmp);
$this->_classes[$reflect->getName()][$method->getName()] = $tmp; $this->_classes[$reflect->getName()][$method->getName()] = $tmp;
} }
$this->resolveProperty($reflect, $object); $this->resolveProperty($reflect, $object);
-1
View File
@@ -73,7 +73,6 @@ class Middleware
[$controller, $action] = $node->handler; [$controller, $action] = $node->handler;
$attributes = Snowflake::app()->getAttributes(); $attributes = Snowflake::app()->getAttributes();
$annotation = $attributes->getByClass(get_class($controller), $action); $annotation = $attributes->getByClass(get_class($controller), $action);
var_dump($annotation);
if (count($annotation) < 1) { if (count($annotation) < 1) {
return; return;
} }