class ContainerCommandLoader implements CommandLoaderInterface

Methods

__construct(Container $container, array $commandMap)

Create a new command loader instance.

Command
get(string $name)

Resolve a command from the container.

bool
has(string $name)

Determines if a command exists.

array
getNames()

Get the command names.

Details

at line 17
__construct(Container $container, array $commandMap)

Create a new command loader instance.

Parameters

Container $container
array $commandMap

at line 28
Command get(string $name)

Resolve a command from the container.

Parameters

string $name

Return Value

Command

Exceptions

CommandNotFoundException

at line 40
bool has(string $name)

Determines if a command exists.

Parameters

string $name

Return Value

bool

at line 50
array getNames()

Get the command names.

Return Value

array