改名
This commit is contained in:
@@ -5,6 +5,7 @@ namespace Annotation;
|
|||||||
|
|
||||||
|
|
||||||
use Annotation\Model\Get;
|
use Annotation\Model\Get;
|
||||||
|
use Database\ActiveRecord;
|
||||||
use ReflectionAttribute;
|
use ReflectionAttribute;
|
||||||
use ReflectionClass;
|
use ReflectionClass;
|
||||||
use ReflectionException;
|
use ReflectionException;
|
||||||
@@ -110,6 +111,10 @@ class Annotation extends Component
|
|||||||
if ($reflect->isInstantiable()) {
|
if ($reflect->isInstantiable()) {
|
||||||
$object = $reflect->newInstance();
|
$object = $reflect->newInstance();
|
||||||
foreach ($reflect->getMethods(ReflectionMethod::IS_PUBLIC) as $method) {
|
foreach ($reflect->getMethods(ReflectionMethod::IS_PUBLIC) as $method) {
|
||||||
|
if ($method->class != $class) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
$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;
|
||||||
|
|||||||
Reference in New Issue
Block a user