Beispiel #1
0
 /**
  * Creates and returns a command
  */
 public function createCommand($name, $spec, PropertyProvider $propertyProvider)
 {
     $command = new TaskCommand($name, $this->getScript($spec), $this->executor);
     $command->setDescription($this->getDescription($spec));
     $command->setProperties($this->getProperties($spec, $propertyProvider));
     return $command;
 }