function ProgressBar::setRealFormat
2 calls to ProgressBar::setRealFormat()
- ProgressBar::clear in vendor/
symfony/ console/ Helper/ ProgressBar.php - Removes the progress bar from the current line.
- ProgressBar::display in vendor/
symfony/ console/ Helper/ ProgressBar.php - Outputs the current progress string.
File
-
vendor/
symfony/ console/ Helper/ ProgressBar.php, line 488
Class
- ProgressBar
- The ProgressBar provides helpers to display progress output.
Namespace
Symfony\Component\Console\HelperCode
private function setRealFormat(string $format) : void {
// try to use the _nomax variant if available
if (!$this->max && null !== self::getFormatDefinition($format . '_nomax')) {
$this->format = self::getFormatDefinition($format . '_nomax');
}
elseif (null !== self::getFormatDefinition($format)) {
$this->format = self::getFormatDefinition($format);
}
else {
$this->format = $format;
}
}