示例#1
0
 private function loadSubCommand(Subcommand $command)
 {
     $this->subCommands[$command->getName()] = $command;
     if ($command->getAlias() != "") {
         $this->aliasSubCommands[$command->getAlias()] = $command;
     }
 }
示例#2
0
 private function loadSubCommand(Subcommand $command)
 {
     $this->commandObjects[] = $command;
     $commandId = count($this->commandObjects) - 1;
     $this->subCommands[$command->getName()] = $commandId;
     foreach ($command->getAliases() as $alias) {
         $this->subCommands[$alias] = $commandId;
     }
 }