Formatting only
parent
cb336a5416
commit
ec434e4576
|
@ -23,16 +23,19 @@ use Symfony\Component\Console\Helper\HelperSet;
|
||||||
class BufferIO extends ConsoleIO
|
class BufferIO extends ConsoleIO
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @param string $input
|
* @param string $input
|
||||||
* @param int $verbosity
|
* @param int $verbosity
|
||||||
* @param OutputFormatterInterface $formatter
|
* @param OutputFormatterInterface $formatter
|
||||||
*/
|
*/
|
||||||
public function __construct($input = '', $verbosity = null, OutputFormatterInterface $formatter = null)
|
public function __construct(
|
||||||
{
|
$input = '',
|
||||||
|
$verbosity = StreamOutput::VERBOSITY_NORMAL,
|
||||||
|
OutputFormatterInterface $formatter = null
|
||||||
|
) {
|
||||||
$input = new StringInput($input);
|
$input = new StringInput($input);
|
||||||
$input->setInteractive(false);
|
$input->setInteractive(false);
|
||||||
|
|
||||||
$output = new StreamOutput(fopen('php://memory', 'rw'), $verbosity === null ? StreamOutput::VERBOSITY_NORMAL : $verbosity, !empty($formatter), $formatter);
|
$output = new StreamOutput(fopen('php://memory', 'rw'), $verbosity, !empty($formatter), $formatter);
|
||||||
|
|
||||||
parent::__construct($input, $output, new HelperSet(array()));
|
parent::__construct($input, $output, new HelperSet(array()));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue