aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/install/helper/iohandler
diff options
context:
space:
mode:
authorOliver Schramm <oliver.schramm97@gmail.com>2016-08-20 22:40:37 +0200
committerOliver Schramm <oliver.schramm97@gmail.com>2016-08-20 22:40:37 +0200
commita37f10ae0951f16b115f4a175cc546a515cf7937 (patch)
treeb8aade382cdf3718ecff6450089d8f2e9fdc3d9e /phpBB/phpbb/install/helper/iohandler
parent88384a1e6313f827a098fcd90e3a7209cc6bb204 (diff)
downloadforums-a37f10ae0951f16b115f4a175cc546a515cf7937.tar
forums-a37f10ae0951f16b115f4a175cc546a515cf7937.tar.gz
forums-a37f10ae0951f16b115f4a175cc546a515cf7937.tar.bz2
forums-a37f10ae0951f16b115f4a175cc546a515cf7937.tar.xz
forums-a37f10ae0951f16b115f4a175cc546a515cf7937.zip
[ticket/14742] Increase user feedback by improving progress bar
We now count and display each step that was done by increasing the task count. PHPBB3-14742
Diffstat (limited to 'phpBB/phpbb/install/helper/iohandler')
-rw-r--r--phpBB/phpbb/install/helper/iohandler/cli_iohandler.php11
1 files changed, 10 insertions, 1 deletions
diff --git a/phpBB/phpbb/install/helper/iohandler/cli_iohandler.php b/phpBB/phpbb/install/helper/iohandler/cli_iohandler.php
index 2a41cb10ba..196cdcdaab 100644
--- a/phpBB/phpbb/install/helper/iohandler/cli_iohandler.php
+++ b/phpBB/phpbb/install/helper/iohandler/cli_iohandler.php
@@ -198,6 +198,16 @@ class cli_iohandler extends iohandler_base
if ($this->output->getVerbosity() === OutputInterface::VERBOSITY_NORMAL)
{
+ if ($this->progress_bar !== null)
+ {
+ // Symfony's ProgressBar is immutable regarding task_count, so delete the old and create a new one.
+ $this->progress_bar->clear();
+ }
+ else
+ {
+ $this->io->newLine(2);
+ }
+
$this->progress_bar = $this->io->createProgressBar($task_count);
$this->progress_bar->setFormat(
" %current:3s%/%max:-3s% %bar% %percent:3s%%\n" .
@@ -212,7 +222,6 @@ class cli_iohandler extends iohandler_base
}
$this->progress_bar->setMessage('');
- $this->io->newLine(2);
$this->progress_bar->start();
}
}