This commit is contained in:
2021-01-19 18:21:34 +08:00
parent 244f00555c
commit 944947307b
+2 -2
View File
@@ -105,14 +105,14 @@ class Annotation extends Component
*/
private function getReflect(string $class, string $alias): array
{
var_dump($class);
$reflect = $this->reflectClass($class);
if ($reflect->isInstantiable()) {
$object = $reflect->newInstance();
foreach ($reflect->getMethods(ReflectionMethod::IS_PUBLIC) as $method) {
$tmp = $this->resolveAnnotations($method, $alias, $object);
var_dump($tmp);
$this->_classes[$reflect->getName()][$method->getName()] = $tmp;
}
}