示例#1
0
 public function reportProgress($filename, $count)
 {
     static $progress = array('|', '/', '-', '\\');
     if ($count == 0) {
         $this->cli->output($this->cli->storePosition() . " " . $this->cli->restorePosition(), false);
     } else {
         $text = array_shift($progress);
         $this->cli->output($this->cli->storePosition() . $text . $this->cli->restorePosition(), false);
         $progress[] = $text;
     }
 }