Allows you to add a command as Command object or as a command name+callable
public command ( string | |
||
$nameOrCommand | string | |
|
$callable | callable | null | Must be a callable if $nameOrCommand is the command's name |
return | The command instance that you can further configure |