merged branch AntonioAngelino/2.3 (PR #8258)

This PR was merged into the 2.3 branch.

Discussion
----------

fix-progressbar-start

lastMessagesLength and barCharOriginal should be reset if you want to use 2 or more Progress Bars in the same command flow.

Commits
-------

e65723c fix-progressbar-start
This commit is contained in:
Fabien Potencier 2013-06-13 08:08:11 +02:00
commit 4dc58adbad
1 changed files with 2 additions and 0 deletions

View File

@ -186,6 +186,8 @@ class ProgressHelper extends Helper
$this->current = 0;
$this->max = (int) $max;
$this->output = $output;
$this->lastMessagesLength = 0;
$this->barCharOriginal = '';
if (null === $this->format) {
switch ($output->getVerbosity()) {