SEPARATOR
SEPARATOR
Class Loader
Parses command line arguments passed to CLI application and loads indicated tasks
parseArguments(\Vegas\Cli\Console $console, $arguments) : array
Parses indicated arguments from command line Returns prepared array with task, action and additional arguments
\Vegas\Cli\Console | $console | |
$arguments |
lookupTaskClass( $arguments) : string
Resolves name of task class The task classes placed in the following location will be resolved * php cli.php app:example .
.. -> app/tasks/ExampleTask.php
* php cli.php app:foo:example ... -> app/modules/Foo/tasks/ExampleTask.php
* php cli.php vegas:cli:example ... -> (vendor path)/vegas-cmf/core/Cli/Task/ExampleTask.php
$arguments |