ExtensionDiscoverInstallCommand

Extends \Joomla\Console\Command\AbstractCommand

Console command for discovering extensions

since

4.0.0

Methods

__construct

Instantiate the command.

__construct(\Joomla\Database\DatabaseInterface $db) 
since

4.0.0

Arguments

$db

\Joomla\Database\DatabaseInterfaceDatabase connector

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) : integer
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

integerThe command exit code

getNote

Used for finding the text for the note

getNote(integer $count, integer $eid) : string
since

4.0.0

Arguments

$count

integerNumber of extensions to install

$eid

integerID of the extension or -1 if no special

Response

stringThe text for the note

processDiscover

Used for discovering extensions

processDiscover(string $eid) : integer
throws

\Exception

since

4.0.0

Arguments

$eid

stringId of the extension

Response

integerThe count of installed extensions

Properties

defaultName

The default command name

static
since

4.0.0

Type(s)

string

cliInput

Stores the Input Object

since

4.0.0

Type(s)

\Symfony\Component\Console\Input\InputInterface

ioStyle

SymfonyStyle Object

since

4.0.0

Type(s)

\Symfony\Component\Console\Style\SymfonyStyle

db

Database connector

since

4.0.0

Type(s)

\Joomla\Database\DatabaseInterface