for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Funivan\Console\ProgressPanel;
use Symfony\Component\Console\Output\NullOutput;
use Symfony\Component\Console\Output\OutputInterface;
/**
* If you invoke setData($message) $message will be displayed
* Otherwise all data will be sent to NullOutput
*
* @author Ivan Shcherbak <[email protected]>
*/
class InlineProgressPanel extends ProgressPanel {
* @var OutputInterface
private $realOutput;
* @inheritdoc
public function __construct(OutputInterface $output, $max) {
$this->realOutput = $output;
parent::__construct(new NullOutput(), $max);
}
public function setData($data) {
$this->realOutput->writeln($data);
return $this;