Exemple #1
0
 /**
  * @inheritdoc
  */
 public function add($name, $code)
 {
     $command = new CommandWrapper($name);
     $command->buildFromCode($code);
     $this->application->add($command);
     return $this;
 }
 private function buildCommandWrapper()
 {
     $cw = new CommandWrapper('pippo');
     /**
      * Esegue il touch di un file specificato in input
      * @param string $name il nome del file
      * @param bool   $go   se specificato esegue il comando, altrimenti dry-run
      */
     $cw->buildFromCode(function ($name, $go = false) {
         // do nothing
     });
     return $cw;
 }