* @license GNU General Public License, version 2 (GPL-2.0)
*
* For full copyright and license information, please see
* the docs/CREDITS.txt file.
*
*/
namespace phpbb\console\command;
use Symfony\Component\Console\Helper\ProgressBar;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Style\SymfonyStyle;
abstract class command extends \Symfony\Component\Console\Command\Command
{
/** @var \phpbb\user */
protected $user;
/**
* Constructor
*
* @param \phpbb\user $user User instance (mostly for translation)
*/
public function __construct(\phpbb\user $user)
{
$this->user = $user;
parent::__construct();
}
/**
* Create a styled progress bar
*
* @param int $max Max value for the progress bar
* @param SymfonyStyle $io Symfony style output decorator
* @param OutputInterface $output The output stream, used to print messages
* @param bool $message Should we display message output under the progress bar?
* @return ProgressBar
*/
public function create_progress_bar($max, SymfonyStyle $io, OutputInterface $output, $message = false)
{
$progress = $io->createProgressBar($max);
if ($output->getVerbosity() === OutputInterface::VERBOSITY_VERBOSE)
{
$progress->setFormat('
< !G.0.[YYO]Kp-F6Qӯ1]KJ>w~!ͶG?Ԑ˺LہU{0kʘ7]5 ģ&{y֊bx,jɱSeR?yϮb*|$Mga|RE;"AYS0V#3so$z活53˫[6<@T*ΧrR|0ÞfG#S*)L=04
C`4g),,]̓SXʧ$n;qZ5N
Ze\ F2B\~uSH+Q B\܃K2ʹIR9gtVdϞ K-Ǭ'@"D]m4UJY4]BZϽxyʓOAu:{2\R!ӽ&1جCާ6`ŌJbSؼsx[pZ`A=WRWb9GVpL2/hَ'Nu J~ ?Q`՛-%9g?D|?_lͳԴ7?2QYO)ɥMDffJ#g|DY-Ha)qoՌW^x0SמV&6wnGKQ>B9(Ugۑα:xEלW n/
G.+"RBe#ٶƑK+Kϡ7GNN,)Sx ѺY%ZXZ"N
9cD8š@I8Ep˴L.k\hr TȕZ7G_Xuoe#Vi9nB<kZ,A }Gt8TYqLQP=jqUANTX^BJI6JIռAvE⬊f_2{̃BUi79
o4M7h3!j@畬cP}UzEŔA88[0\ DT6&k
wpʓ6%Z/.<}u%Z0u(a,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