function SymfonyStyle::createProgressBar
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 265
Class
- SymfonyStyle
- Output decorator helpers for the Symfony Style Guide.
Namespace
Symfony\Component\Console\StyleCode
public function createProgressBar(int $max = 0) : ProgressBar {
$progressBar = parent::createProgressBar($max);
if ('\\' !== \DIRECTORY_SEPARATOR || 'Hyper' === getenv('TERM_PROGRAM')) {
$progressBar->setEmptyBarCharacter('░');
// light shade character \u2591
$progressBar->setProgressCharacter('');
$progressBar->setBarCharacter('▓');
// dark shade character \u2593
}
return $progressBar;
}