ExtensionInstallCommand
Extends AbstractCommandConsole command for installing extensions
| since |
4.0.0 |
|---|---|
| package |
Joomla CMS |
Methods
__construct
Command constructor.
__construct(\Joomla\Database\DatabaseInterface db) :
| since |
6.0.0 |
|---|
Arguments
- db
DatabaseInterfaceThe database
Response
mixed
configure
Initialise the command.
configure() :
| since |
4.0.0 |
|---|
Response
void
configureIO
Configures the IO
configureIO(\Symfony\Component\Console\Input\InputInterface input, \Symfony\Component\Console\Output\OutputInterface output) :
| since |
4.0.0 |
|---|
Arguments
- input
InputInterfaceConsole Input- output
OutputInterfaceConsole Output
Response
void
doExecute
Internal function to execute the command.
doExecute(\Symfony\Component\Console\Input\InputInterface input, \Symfony\Component\Console\Output\OutputInterface output) :
| throws |
|
|---|---|
| since |
4.0.0 |
Arguments
- input
InputInterfaceThe input to inject into the command.- output
OutputInterfaceThe output to inject into the command.
Response
intThe command exit code
processPathInstallation
Used for installing extension from a path
processPathInstallation( path) :
| since |
4.0.0 |
|---|---|
| throws |
|
Arguments
- path
stringPath to the extension zip file
Response
bool
processUrlInstallation
Used for installing extension from a URL
processUrlInstallation( url) :
| since |
4.0.0 |
|---|---|
| throws |
|
Arguments
- url
stringURL to the extension zip file
Response
bool
Constants
INSTALLATION_FAILED
Exit Code For installation failure
| Value | 1 |
|---|---|
| since |
4.0.0 |
INSTALLATION_SUCCESSFUL
Exit Code For installation Success
| Value | 0 |
|---|---|
| since |
4.0.0 |
Properties
defaultName
The default command name
| since |
4.0.0 |
|---|
Type(s)
string
cliInput
Stores the Input Object
| since |
4.0.0 |
|---|
Type(s)
InputInterface
ioStyle
SymfonyStyle Object
| since |
4.0.0 |
|---|
Type(s)
SymfonyStyle