mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-03-17 20:54:52 +08:00
fix user command dir path
This commit is contained in:
parent
3f2bd69002
commit
9bf95223a1
@ -35,10 +35,10 @@ final class ConsoleApplication extends Application
|
||||
FileSystem::getClassesPsr4(FRAMEWORK_ROOT_DIR . '/src/ZM/Command', 'ZM\\Command')
|
||||
);
|
||||
// 再加载用户自定义命令(如存在)
|
||||
if (is_dir(zm_dir('src/Command'))) {
|
||||
if (is_dir(SOURCE_ROOT_DIR . '/src/Command')) {
|
||||
$command_classes = array_merge(
|
||||
$command_classes,
|
||||
FileSystem::getClassesPsr4(zm_dir('src/Command'), 'Command')
|
||||
FileSystem::getClassesPsr4(SOURCE_ROOT_DIR . '/src/Command', 'Command')
|
||||
);
|
||||
}
|
||||
$commands = [];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user