A registry that contains the commands known by a shell.<p/>
It is a mutable command resolver.
package |
Default |
---|
__construct()
commands() : array
array
the current commands
create( $arg0) : \io\vertx\jphp\ext\shell\command\CommandRegistry
getCommand( $arg0) : \io\vertx\jphp\ext\shell\command\Command
getShared( $arg0) : \io\vertx\jphp\ext\shell\command\CommandRegistry
registerCommand( $arg0, $arg1 = null) : $this
param $command [Command] registerCommand($command)
Register a command
param $command [Command] the command to register param $completionHandler [callable] notified when the command is registered registerCommand($command, $completionHandler)
Command
callable
$this
registerCommands( $arg0, $arg1 = null) : $this
param $commands [array] registerCommands($commands)
Register a list of commands.
param $commands [array] the commands to register param $completionHandler [callable] notified when the command is registered registerCommands($commands, $completionHandler)
array
callable
$this
unregisterCommand( $arg0, $arg1 = null) : $this
param $commandName [string] unregisterCommand($commandName)
Unregister a command.
param $commandName [string] the command name param $completionHandler [callable] notified when the command is unregistered unregisterCommand($commandName, $completionHandler)
string
callable
$this