public function ProgressHelper::display in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/console/Helper/ProgressHelper.php \Symfony\Component\Console\Helper\ProgressHelper::display()
Outputs the current progress string.
Parameters
bool $finish Forces the end result:
Throws
\LogicException
2 calls to ProgressHelper::display()
- ProgressHelper::finish in vendor/
symfony/ console/ Helper/ ProgressHelper.php - Finishes the progress output.
- ProgressHelper::setCurrent in vendor/
symfony/ console/ Helper/ ProgressHelper.php - Sets the current progress.
File
- vendor/
symfony/ console/ Helper/ ProgressHelper.php, line 287
Class
- ProgressHelper
- The Progress class provides helpers to display progress output.
Namespace
Symfony\Component\Console\HelperCode
public function display($finish = false) {
if (null === $this->startTime) {
throw new \LogicException('You must start the progress bar before calling display().');
}
$message = $this->format;
foreach ($this
->generate($finish) as $name => $value) {
$message = str_replace("%{$name}%", $value, $message);
}
$this
->overwrite($this->output, $message);
}