改名
This commit is contained in:
@@ -115,6 +115,10 @@ class Annotation extends Component
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($method->getName() == 'getGoods_descriptionAttribute') {
|
||||||
|
var_dump($method->getAttributes());
|
||||||
|
}
|
||||||
|
|
||||||
$tmp = $this->resolveAnnotations($method, $alias, $object);
|
$tmp = $this->resolveAnnotations($method, $alias, $object);
|
||||||
|
|
||||||
$this->_classes[$reflect->getName()][$method->getName()] = $tmp;
|
$this->_classes[$reflect->getName()][$method->getName()] = $tmp;
|
||||||
@@ -144,11 +148,6 @@ class Annotation extends Component
|
|||||||
private function resolveAnnotations(ReflectionMethod $method, $alias, $object): array
|
private function resolveAnnotations(ReflectionMethod $method, $alias, $object): array
|
||||||
{
|
{
|
||||||
$attributes = $method->getAttributes();
|
$attributes = $method->getAttributes();
|
||||||
$this->debug($method->getName());
|
|
||||||
if ($method->getName() == 'getGoods_descriptionAttribute') {
|
|
||||||
var_dump($method, $attributes);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (count($attributes) < 1) {
|
if (count($attributes) < 1) {
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user