for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of monofony.
*
* (c) Mobizel
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace App\Command\Helper;
use Symfony\Component\Console\Helper\ProgressBar;
use Symfony\Component\Console\Output\OutputInterface;
final class ProgressBarCreator
{
public function create(OutputInterface $output, int $length = 10): ProgressBar
$progress = new ProgressBar($output);
$progress->setBarCharacter('<info>░</info>');
$progress->setEmptyBarCharacter(' ');
$progress->setProgressCharacter('<comment>░</comment>');
$progress->start($length);
return $progress;
}