public function SymfonyStyle::createProgressBar in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/console/Style/SymfonyStyle.php \Symfony\Component\Console\Style\SymfonyStyle::createProgressBar()
Parameters
int $max:
Return value
Overrides OutputStyle::createProgressBar
1 call to SymfonyStyle::createProgressBar()
- SymfonyStyle::progressStart in vendor/
symfony/ console/ Style/ SymfonyStyle.php - Starts the progress output.
File
- vendor/
symfony/ console/ Style/ SymfonyStyle.php, line 293
Class
- SymfonyStyle
- Output decorator helpers for the Symfony Style Guide.
Namespace
Symfony\Component\Console\StyleCode
public function createProgressBar($max = 0) {
$progressBar = parent::createProgressBar($max);
if ('\\' === DIRECTORY_SEPARATOR) {
$progressBar
->setEmptyBarCharacter('░');
// light shade character \u2591
$progressBar
->setProgressCharacter('');
$progressBar
->setBarCharacter('▓');
// dark shade character \u2593
}
return $progressBar;
}