LoaderInterface

Interface defining a command loader.

since

2.0.0

package

Joomla Framework

Methods

get

Loads a command.

get( name) : \Joomla\Console\Command\AbstractCommand
since

2.0.0

throws

CommandNotFoundException

Arguments

name

stringThe command to load.

Response

AbstractCommand

getNames

Get the names of the registered commands.

getNames() : string||string|int
since

2.0.0

Response

array<string|int, string>

has

Checks if a command exists.

has( name) : 
since

2.0.0

Arguments

name

stringThe command to check.

Response

bool