ApplicationDescription
描述应用程序。
最终
自 |
2.0.0 |
---|---|
包 |
Joomla 框架 |
方法
__construct
构造函数。
__construct(\Joomla\Console\Application application, namespace = '', showHidden = false) :
自 |
2.0.0 |
---|
参数
- application
Application
正在描述的应用程序。- namespace
string
要处理的命令命名空间。- showHidden
bool
指示是否应显示隐藏命令的标志。
返回值
混合
getCommand
按名称获取命令。
getCommand( name) : \Joomla\Console\Command\AbstractCommand
getCommands
获取应用程序的命令。
getCommands() : \Joomla\Console\Command\AbstractCommand||string|int
getNamespaces
获取应用程序的命令命名空间。
getNamespaces() : array||string|int
自 |
2.0.0 |
---|
返回值
array<string|int, array<string|int, mixed>>
常量
GLOBAL_NAMESPACE
全局命名空间中命令的占位符。
值 | '_global' |
---|---|
自 |
2.0.0 |
类型
字符串