Zhamao Framework 3.2.4
A high-performance chatbot + web framework
载入中...
搜索中...
未找到
Command类 参考
类 Command 继承关系图:
[图例]
Command 的协作图:
[图例]

Protected 成员函数

 execute (InputInterface $input, OutputInterface $output)
 
 shouldExecute ()
 
 handle ()
 
 emitBootstrap (string $class)
 

Protected 属性

InputInterface $input
 
OutputInterface $output
 

成员函数说明

◆ emitBootstrap()

emitBootstrap ( string  $class)
protected

◆ execute()

execute ( InputInterface  $input,
OutputInterface  $output 
)
protected

{}

SystemdGenerateCommand , 以及 ProxyServerCommand 重载.

函数调用图:

◆ handle()

handle ( )
abstractprotected

命令的主体

返回
int 命令执行结果 {
参见
self::SUCCESS} 或 {
self::FAILURE} 或 {
self::INVALID}

BotCraftCommand, BuildCommand, CheckConfigCommand, TextGenerateCommand, InitCommand, PluginInstallCommand, PluginListCommand, PluginMakeCommand, PluginPackCommand, PluginRemoveCommand , 以及 ReplCommand 重载.

◆ shouldExecute()

shouldExecute ( )
protected

是否应该执行

返回
bool 返回 true 以继续执行,返回 false 以中断执行

结构体成员变量说明

◆ $input

InputInterface $input
protected

输入

◆ $output

OutputInterface $output
protected

输出

一般来说同样会是 ConsoleOutputInterface


该类的文档由以下文件生成: