LaravelCLICommand

Summary

No public properties found
No constants found
No protected properties found
N/A
No private methods found
No private properties found
N/A
File
clicommand.php
Package
Default
Class hierarchy
LaravelCLICommand

Tags

None found

Methods

run()

run(array  $arguments = array()) : void

Run a CLI task with the given arguments.

// Call the migrate artisan task Command::run(array('migrate'));

// Call the migrate task with some arguments
Command::run(array('migrate:rollback', 'bundle-name'))

Parameters

array $arguments

static

Tags

None found

resolve()

resolve(string  $bundle, string  $task) : object

Resolve an instance of the given task name.

// Resolve an instance of a task $task = Command::resolve('application', 'migrate');

// Resolve an instance of a task within a bundle
$task = Command::resolve('bundle', 'foo');

Parameters

string $bundle
string $task

Returns

object

static

Tags

None found

options()

options(array  $argv) : array

Parse the command line arguments and return the results.

Parameters

array $argv

Returns

array

static

Tags

None found

validate()

validate(array  $arguments) : void

Determine if the given command arguments are valid.

Parameters

array $arguments

static

Tags

None found

parse()

parse(string  $task) : array

Parse the task name to extract the bundle, task, and method.

Parameters

string $task

Returns

array

static

Tags

None found

format()

format(string  $bundle, string  $task) : string

Format a bundle and task into a task class name.

Parameters

string $bundle
string $task

Returns

string

static

Tags

None found