CommandControllerExtension::getCommand
Returns the requested command and assigns the controller class to its owner/caller. See @link CommandFactory for more details.
Signature
public function getCommand(string
$commandName,
[array|null
$data = NULL] )
Parameters
$commandName
—
string
- name of the command
$data
—
object
- list of parameters for the command. The array
structure is specific to the command.
Returns
- ControllerCommand
- the requested command.
Errors/Exceptions
-
CommandController_Exception