ExtensionDiscoverInstallCommand
扩展自 AbstractCommand用于发现扩展的控制台命令
| 自 | 4.0.0 | 
|---|---|
| 包 | Joomla CMS | 
方法
__construct
实例化命令。
__construct(\Joomla\Database\DatabaseInterface db) :
| 自 | 4.0.0 | 
|---|
参数
- db
- DatabaseInterface数据库连接器
响应
混合
configure
初始化命令。
configure() :
| 自 | 4.0.0 | 
|---|
响应
void
configureIO
配置 IO
configureIO(\Symfony\Component\Console\Input\InputInterface input, \Symfony\Component\Console\Output\OutputInterface output) :
| 自 | 4.0.0 | 
|---|
参数
- 输入
- InputInterface控制台输入
- 输出
- OutputInterface控制台输出
响应
void
doExecute
执行命令的内部函数。
doExecute(\Symfony\Component\Console\Input\InputInterface input, \Symfony\Component\Console\Output\OutputInterface output) :
| 自 | 4.0.0 | 
|---|
参数
- 输入
- InputInterface要注入到命令的输入。
- 输出
- OutputInterface要注入到命令的输出。
响应
int命令退出代码
getNote
用于查找说明文本
getNote( count, eid) :
| 自 | 4.0.0 | 
|---|
参数
- 计数
- int要安装的扩展数量
- eid
- int扩展的 ID,如果无特殊则为 -1
响应
string说明文本
processDiscover
用于发现扩展
processDiscover( eid) :
| 抛出 | 
 | 
|---|---|
| 自 | 4.0.0 | 
参数
- eid
- string扩展的 ID
响应
int已安装扩展的数量
属性
defaultName
默认命令名称
                        静态                    
    
    | 自 | 4.0.0 | 
|---|
类型
string
            cliInput
存储输入对象
| 自 | 4.0.0 | 
|---|
类型
InputInterface
            ioStyle
SymfonyStyle 对象
| 自 | 4.0.0 | 
|---|
类型
SymfonyStyle