ExtensionRemoveCommand

Extends \Joomla\Console\Command\AbstractCommand

Console command for removing extensions

since

4.0.0

package

Joomla CMS

Methods

__construct

Command constructor.

__construct(\Joomla\Database\DatabaseInterface db) : mixed
since

4.2.0

Arguments

db

\Joomla\Database\DatabaseInterfaceThe database

Response

mixed

configure

Initialise the command.

configure() : void
since

4.0.0

configureIO

Configures the IO

configureIO(\Symfony\Component\Console\Input\InputInterface input, \Symfony\Component\Console\Output\OutputInterface output) : void
since

4.0.0

Arguments

input

\Symfony\Component\Console\Input\InputInterfaceConsole Input

output

\Symfony\Component\Console\Output\OutputInterfaceConsole Output

doExecute

Internal function to execute the command.

doExecute(\Symfony\Component\Console\Input\InputInterface input, \Symfony\Component\Console\Output\OutputInterface output) : int
since

4.0.0

Arguments

input

\Symfony\Component\Console\Input\InputInterfaceThe input to inject into the command.

output

\Symfony\Component\Console\Output\OutputInterfaceThe output to inject into the command.

Response

intThe command exit code

Constants

REMOVE_ABORT

Exit Code for extensions remove abort

Value 3
since

4.0.0

REMOVE_FAILED

Exit Code for extensions remove failure

Value 1
since

4.0.0

REMOVE_INVALID_RESPONSE

Exit Code for invalid response

Value 5
since

4.0.0

REMOVE_INVALID_TYPE

Exit Code for invalid type

Value 6
since

4.0.0

REMOVE_LOCKED

Exit Code for extensions locked remove failure

Value 4
since

4.0.0

REMOVE_NOT_FOUND

Exit Code for extensions not found

Value 2
since

4.0.0

REMOVE_SUCCESSFUL

Exit Code for extensions remove success

Value 0
since

4.0.0

Properties

defaultName

The default command name

static
since

4.0.0

Type(s)

string

cliInput

since

4.0.0

Type(s)

\Symfony\Component\Console\Input\InputInterface

ioStyle

since

4.0.0

Type(s)

\Symfony\Component\Console\Style\SymfonyStyle