You are here

public function SymfonyStyle::createProgressBar in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/console/Style/SymfonyStyle.php \Symfony\Component\Console\Style\SymfonyStyle::createProgressBar()

Parameters

int $max:

Return value

ProgressBar

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\Style

Code

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;
}