改名
This commit is contained in:
@@ -6,6 +6,7 @@ namespace Annotation;
|
||||
|
||||
use DirectoryIterator;
|
||||
use Snowflake\Abstracts\Component;
|
||||
use Snowflake\Exception\ComponentException;
|
||||
|
||||
/**
|
||||
* Class Annotation
|
||||
@@ -50,6 +51,7 @@ class Annotation extends Component
|
||||
* @param string $namespace
|
||||
* @param string $alias
|
||||
* @return void
|
||||
* @throws ComponentException
|
||||
*/
|
||||
public function read(string $path, string $namespace, string $alias = 'root'): void
|
||||
{
|
||||
@@ -58,6 +60,15 @@ class Annotation extends Component
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @param string $dir
|
||||
*/
|
||||
public function instanceDirectoryFiles(string $dir)
|
||||
{
|
||||
$this->_loader->loadByDirectory($dir);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @param string $filename
|
||||
* @return mixed
|
||||
|
||||
Reference in New Issue
Block a user