1
0
Fork 0

Merge pull request #7868 from fancyweb/add-helper-set-to-buffer-io

feat(buffer-io): add question helper to helper set
pull/7925/head
Jordi Boggiano 2019-01-28 13:46:01 +01:00 committed by GitHub
commit ff815bbae7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -12,6 +12,7 @@
namespace Composer\IO;
use Symfony\Component\Console\Helper\QuestionHelper;
use Symfony\Component\Console\Output\StreamOutput;
use Symfony\Component\Console\Formatter\OutputFormatterInterface;
use Symfony\Component\Console\Input\StringInput;
@ -34,7 +35,9 @@ class BufferIO extends ConsoleIO
$output = new StreamOutput(fopen('php://memory', 'rw'), $verbosity, $formatter ? $formatter->isDecorated() : false, $formatter);
parent::__construct($input, $output, new HelperSet(array()));
parent::__construct($input, $output, new HelperSet(array(
new QuestionHelper(),
)));
}
public function getOutput()