### Usage:
With a string command:
return $this->dispatchShell('schema create DbAcl');
Avoid using this form if you have string arguments, with spaces in them.
The dispatched will be invoked incorrectly. Only use this form for simple
command dispatching.
With an array command:
return $this->dispatchShell('schema', 'create', 'i18n', '--dry');
With an array having two key / value pairs:
- command can accept either a string or an array. Represents the command to dispatch
- extra can accept an array of extra parameters to pass on to the dispatcher. This
parameters will be available in the param property of the called Shell
return $this->dispatchShell([
'command' => 'schema create DbAcl',
'extra' => ['param' => 'value']
]);
or
return $this->dispatchShell([
'command' => ['schema', 'create', 'DbAcl'],
'extra' => ['param' => 'value']
]);