This commit is contained in:
2021-02-23 15:33:43 +08:00
parent 1adfdfa710
commit dd651e2191
4 changed files with 11 additions and 24 deletions
+1 -1
View File
@@ -65,7 +65,7 @@ class Annotation extends Component
* @return $this
* @throws ReflectionException|NotFindPropertyException|NotFindClassException
*/
public function readControllers(string $path, string $namespace, string $alias = 'root'): static
public function read(string $path, string $namespace, string $alias = 'root'): static
{
return $this->scanDir(glob($path . '*'), $namespace, $alias);
}