API Documentation (v0.9.0-alpha)

Avolutions\Command\CommandDispatcher

Find and run commands based on passed arguments.

Methods

Method Visibility Description
__construct() public Creates a new CommandDispatcher instance.
dispatch() public Find and run command based on passed arguments.

Method Details

__construct()

Creates a new CommandDispatcher instance.

public __construct(Application $Application, CommandCollection $CommandCollection, Console $Console) : mixed
Parameters

Application $Application
Application instance.

CommandCollection $CommandCollection
CommandCollection instance.

Console $Console
Console instance for output.

dispatch()

Find and run command based on passed arguments.

public dispatch(mixed $argv) : int
Parameters

mixed $argv
Command string or array with arguments and Options.

Return values
int Find and run command based on passed arguments.