for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Archivr\Cli\Command;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Formatter\OutputFormatterStyle;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
abstract class AbstractCommand extends Command
{
/**
* @var InputInterface
*/
protected $input;
* @var OutputInterface
protected $output;
* {@inheritdoc}
protected function execute(InputInterface $input, OutputInterface $output)
$this->input = $input;
$this->output = $output;
$this->registerFormatters();
}
* Registers some custom formatters to the given output.
protected function registerFormatters(): void
$this->output->getFormatter()->setStyle('bold', new OutputFormatterStyle(null, null, ['bold']));