|
Zhamao Framework
3.0.0-beta1
A high-performance chatbot + web framework
|
Protected 成员函数 | |
| execute (InputInterface $input, OutputInterface $output) | |
| shouldExecute () | |
| handle () | |
| write (string $message, bool $newline=true) | |
| info (string $message, bool $newline=true) | |
| error (string $message, bool $newline=true) | |
| comment (string $message, bool $newline=true) | |
| question (string $message, bool $newline=true) | |
| detail (string $message, bool $newline=true) | |
| section (string $message, callable $callback) | |
Protected 属性 | |
| InputInterface | $input |
| OutputInterface | $output |
|
protected |
输出文本,一般用于警告或附注信息
| string | $message | 要输出的文本 |
| bool | $newline | 是否在文本后换行 |
|
protected |
输出文本,一般用于详细信息
| string | $message | 要输出的文本 |
| bool | $newline | 是否在文本后换行 |
|
protected |
输出文本,一般用于错误信息
| string | $message | 要输出的文本 |
| bool | $newline | 是否在文本后换行 |
|
protected |
|
abstractprotected |
命令的主体
被 InitCommand, CheckConfigCommand, ReplCommand , 以及 BotCraftCommand 重载.
|
protected |
输出文本,一般用于提示信息
| string | $message | 要输出的文本 |
| bool | $newline | 是否在文本后换行 |
|
protected |
输出文本,一般用于提问信息
| string | $message | 要输出的文本 |
| bool | $newline | 是否在文本后换行 |
|
protected |
输出一个区块,区块内内容可以覆写
此功能需要 $output 为 {
| string | $message | 作为标题的文本 |
| callable | $callback | 回调函数,接收一个参数,类型为 { |
|
protected |
是否应该执行
|
protected |
输出一段文本,默认样式
| string | $message | 要输出的文本 |
| bool | $newline | 是否在文本后换行 |
|
protected |
输入
|
protected |
输出
一般来说同样会是 ConsoleOutputInterface