Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions src/Command/ConfigCommand.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -18,6 +19,8 @@ class ConfigCommand extends BaseCommand
//--------------------------------------------------------------------------------------------------------------------
/**
* The helper instance by name.
*
* @var QuestionHelper
*/
private $helper;

Expand Down Expand Up @@ -92,8 +95,9 @@ protected function setDatabasePart(InputInterface $input, OutputInterface $outpu
$this->io->logInfo('Please input data for <dbo>\'%s\'</dbo> 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);
}
}
Expand Down