改名
This commit is contained in:
@@ -83,7 +83,7 @@ class Annotation extends Component
|
|||||||
if (is_file($path)) {
|
if (is_file($path)) {
|
||||||
$explode_pop = str_replace('.php', '', $explode_pop);
|
$explode_pop = str_replace('.php', '', $explode_pop);
|
||||||
$annotation = $this->getReflect($namespace . '\\' . $explode_pop);
|
$annotation = $this->getReflect($namespace . '\\' . $explode_pop);
|
||||||
if (empty($annotation)) {
|
if (count($annotation) < 1) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
$this->_annotations[$alias][] = $annotation;
|
$this->_annotations[$alias][] = $annotation;
|
||||||
@@ -120,6 +120,8 @@ class Annotation extends Component
|
|||||||
foreach ($attributes as $attribute) {
|
foreach ($attributes as $attribute) {
|
||||||
$names[$attribute->getName()] = $this->instance($attribute);
|
$names[$attribute->getName()] = $this->instance($attribute);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var_dump($reflect->getName(), $method->getName());
|
||||||
$tmp['handler'] = [$object, $method->getName()];
|
$tmp['handler'] = [$object, $method->getName()];
|
||||||
$tmp['attributes'] = $names;
|
$tmp['attributes'] = $names;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user