class Console (View source)

The console class.

Methods

__construct(array $argv)

The console constructor.

array
getCommands()

Get the list of available commands.

help(array $commands)

Show the help for all available commands.

runCommand(array $argv)

Run a command based on the $argv array.

Details

__construct(array $argv)

The console constructor.

Parameters

array $argv

private array getCommands()

Get the list of available commands.

Return Value

array the list of command objects

private help(array $commands)

Show the help for all available commands.

Parameters

array $commands

private runCommand(array $argv)

Run a command based on the $argv array.

Parameters

array $argv