From 45a7b8e1c2e68a450ac053d0f96bc5df3d7ef399 Mon Sep 17 00:00:00 2001 From: fancyweb Date: Wed, 2 Jan 2019 23:38:11 +0100 Subject: [PATCH] feat(buffer-io): add question helper set --- src/Composer/IO/BufferIO.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Composer/IO/BufferIO.php b/src/Composer/IO/BufferIO.php index d47d4eaa5..83a1a9820 100644 --- a/src/Composer/IO/BufferIO.php +++ b/src/Composer/IO/BufferIO.php @@ -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()