This commit is contained in:
2021-01-19 18:32:00 +08:00
parent 92836d9976
commit 71b892f2b7
+4 -5
View File
@@ -115,6 +115,10 @@ class Annotation extends Component
continue;
}
if ($method->getName() == 'getGoods_descriptionAttribute') {
var_dump($method->getAttributes());
}
$tmp = $this->resolveAnnotations($method, $alias, $object);
$this->_classes[$reflect->getName()][$method->getName()] = $tmp;
@@ -144,11 +148,6 @@ class Annotation extends Component
private function resolveAnnotations(ReflectionMethod $method, $alias, $object): array
{
$attributes = $method->getAttributes();
$this->debug($method->getName());
if ($method->getName() == 'getGoods_descriptionAttribute') {
var_dump($method, $attributes);
}
if (count($attributes) < 1) {
return [];
}