Methods summary
public static
|
#
run( array $arguments = array() )
Run a CLI task with the given arguments.
Run a CLI task with the given arguments.
Command::run(array('migrate'));
Command::run(array('migrate:rollback', 'bundle-name'))
Parameters
- $arguments
array $arguments
|
protected static
|
#
validate( array $arguments )
Determine if the given command arguments are valid.
Determine if the given command arguments are valid.
Parameters
- $arguments
array $arguments
|
protected static
array
|
#
parse( string $task )
Parse the task name to extract the bundle, task, and method.
Parse the task name to extract the bundle, task, and method.
Parameters
Returns
array
|
public static
object
|
#
resolve( string $bundle, string $task )
Resolve an instance of the given task name.
Resolve an instance of the given task name.
$task = Command::resolve('application', 'migrate');
$task = Command::resolve('bundle', 'foo');
Parameters
- $bundle
string $bundle
- $task
string $task
Returns
object
|
public static
array
|
#
options( array $argv )
Parse the command line arguments and return the results.
Parse the command line arguments and return the results.
Parameters
Returns
array
|
protected static
string
|
#
format( string $bundle, string $task )
Format a bundle and task into a task class name.
Format a bundle and task into a task class name.
Parameters
- $bundle
string $bundle
- $task
string $task
Returns
string
|