mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-23 16:45:35 +08:00
fix user command dir path
This commit is contained in:
@@ -35,10 +35,10 @@ final class ConsoleApplication extends Application
|
|||||||
FileSystem::getClassesPsr4(FRAMEWORK_ROOT_DIR . '/src/ZM/Command', 'ZM\\Command')
|
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 = array_merge(
|
||||||
$command_classes,
|
$command_classes,
|
||||||
FileSystem::getClassesPsr4(zm_dir('src/Command'), 'Command')
|
FileSystem::getClassesPsr4(SOURCE_ROOT_DIR . '/src/Command', 'Command')
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
$commands = [];
|
$commands = [];
|
||||||
|
|||||||
Reference in New Issue
Block a user