This commit is contained in:
2021-02-22 19:37:44 +08:00
parent 8fb5928747
commit 7f20d3aaf1
+3 -1
View File
@@ -85,6 +85,7 @@ class Annotation extends Component
* @param string $alias * @param string $alias
* @return $this * @return $this
* @throws ReflectionException|NotFindPropertyException * @throws ReflectionException|NotFindPropertyException
* @throws NotFindClassException
*/ */
private function scanDir(array $paths, string $namespace, string $alias): static private function scanDir(array $paths, string $namespace, string $alias): static
{ {
@@ -115,10 +116,12 @@ class Annotation extends Component
* @return array * @return array
* @throws ReflectionException * @throws ReflectionException
* @throws NotFindPropertyException * @throws NotFindPropertyException
* @throws NotFindClassException
*/ */
private function getReflect(string $class, string $alias): array private function getReflect(string $class, string $alias): array
{ {
$reflect = $this->reflectClass($class); $reflect = $this->reflectClass($class);
var_dump($class, $reflect);
if (empty($reflect)) { if (empty($reflect)) {
return []; return [];
} }
@@ -143,7 +146,6 @@ class Annotation extends Component
*/ */
private function resolveMethod(ReflectionClass $reflect, $class, $alias, $object) private function resolveMethod(ReflectionClass $reflect, $class, $alias, $object)
{ {
var_dump($reflect->getName());
try { try {
foreach ($reflect->getMethods(ReflectionMethod::IS_PUBLIC) as $method) { foreach ($reflect->getMethods(ReflectionMethod::IS_PUBLIC) as $method) {
if ($method->class != $class) { if ($method->class != $class) {