This commit is contained in:
2021-09-06 14:30:20 +08:00
parent 728f95492f
commit e5dc0b7836
4 changed files with 597 additions and 591 deletions
+3 -2
View File
@@ -61,12 +61,13 @@ class Annotation extends Component
* @param string $path
* @param string $namespace
* @param array $exclude
* @return void
* @return static
* @throws Exception
*/
public function read(string $path, string $namespace = 'App', array $exclude = []): void
public function read(string $path, string $namespace = 'App', array $exclude = []): static
{
$this->_loader->_scanDir(new DirectoryIterator($path), $namespace, $exclude);
return $this;
}