From 4e19872253a8f3dfd0bd0449c5a3c41ae980d256 Mon Sep 17 00:00:00 2001 From: Dima Nagorniy Date: Mon, 5 Dec 2016 10:35:07 +0200 Subject: [PATCH] AUD-70: Missing type hint --- src/Command/ConfigCommand.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) mode change 100644 => 100755 src/Command/ConfigCommand.php diff --git a/src/Command/ConfigCommand.php b/src/Command/ConfigCommand.php old mode 100644 new mode 100755 index 2aa488a..d14672d --- a/src/Command/ConfigCommand.php +++ b/src/Command/ConfigCommand.php @@ -3,6 +3,7 @@ namespace SetBased\Audit\Command; use SetBased\Stratum\Style\StratumStyle; +use Symfony\Component\Console\Helper\QuestionHelper; use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; @@ -18,6 +19,8 @@ class ConfigCommand extends BaseCommand //-------------------------------------------------------------------------------------------------------------------- /** * The helper instance by name. + * + * @var QuestionHelper */ private $helper; @@ -92,8 +95,9 @@ protected function setDatabasePart(InputInterface $input, OutputInterface $outpu $this->io->logInfo('Please input data for \'%s\' part.', $configPart); foreach ($this->config[$configPart] as $parameter => $value) { - $question = sprintf('Please enter the \'%s\' (%s): ', $parameter, $value); - $question = new Question($question, $value); + $question = sprintf('Please enter the \'%s\' (%s): ', $parameter, $value); + $question = new Question($question, $value); + $this->config[$configPart][$parameter] = $this->helper->ask($input, $output, $question); } }