Beispiel #1
0
 /**
  * Show an information of what will happen
  *
  * @return void
  */
 public function preview()
 {
     parent::preview();
     $fn = $this->get('callback');
     if (is_string($fn)) {
         $name = $fn;
     } elseif (is_array($fn)) {
         $name = (is_object($fn[0]) ? get_class($fn[0]) . '->' : $fn[0] . '::') . $fn[1];
     } else {
         $name = 'anonymous function';
     }
     $this->console->output('Calling ' . $name, OutputInterface::VERBOSITY_DEBUG);
 }