Symfony\Component\Console\Helper\ProgressBar::setOverwrite PHP Method

setOverwrite() public method

Sets whether to overwrite the progressbar, false for new line.
public setOverwrite ( boolean $overwrite )
$overwrite boolean
    public function setOverwrite($overwrite)
    {
        $this->overwrite = (bool) $overwrite;
    }

Usage Example

コード例 #1
0
ファイル: ProgressSubscriber.php プロジェクト: phpro/grumphp
 /**
  * @param OutputInterface  $output
  * @param ProgressBar $progressBar
  */
 public function __construct(OutputInterface $output, ProgressBar $progressBar)
 {
     $this->output = $output;
     $this->progressBar = $progressBar ?: new ProgressBar($output);
     $this->progressBar->setOverwrite(false);
     $this->progressFormat = "<fg=yellow>Running task %current%/%max%:</fg=yellow> %message%";
 }
All Usage Examples Of Symfony\Component\Console\Helper\ProgressBar::setOverwrite