Exemple #1
0
 /**
  * 添加一个command
  * 
  * @param CommandInterface $command
  */
 function addCommand(CommandInterface $command)
 {
     $command->setConsole($this);
     $this->commands[$command->getName()] = $command;
 }