改名
This commit is contained in:
@@ -61,7 +61,6 @@ class Annotation extends Component
|
|||||||
*/
|
*/
|
||||||
public function readControllers(string $path, string $namespace, string $alias = 'root'): static
|
public function readControllers(string $path, string $namespace, string $alias = 'root'): static
|
||||||
{
|
{
|
||||||
$this->debug('scan dir ' . $path . ' ing...');
|
|
||||||
return $this->scanDir(glob($path . '*'), $namespace, $alias);
|
return $this->scanDir(glob($path . '*'), $namespace, $alias);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -133,6 +133,8 @@ class Application extends BaseApplication
|
|||||||
*/
|
*/
|
||||||
public function scan_system_annotation()
|
public function scan_system_annotation()
|
||||||
{
|
{
|
||||||
|
$this->debug('scan system files...');
|
||||||
|
|
||||||
$annotation = Snowflake::app()->getAttributes();
|
$annotation = Snowflake::app()->getAttributes();
|
||||||
$annotation->readControllers(__DIR__ . '/../Console/', 'Console', 'system');
|
$annotation->readControllers(__DIR__ . '/../Console/', 'Console', 'system');
|
||||||
$annotation->readControllers(__DIR__ . '/../Database/', 'Database', 'system');
|
$annotation->readControllers(__DIR__ . '/../Database/', 'Database', 'system');
|
||||||
|
|||||||
Reference in New Issue
Block a user