Commit f0bb7817 authored by Johan Cwiklinski's avatar Johan Cwiklinski

Merge branch '9.5/bugfixes'

parents 5cb5d9ea 202302b7
......@@ -172,20 +172,18 @@ class InstallCommand extends Command implements ForceNoPluginsOptionCommandInter
protected function interact(InputInterface $input, OutputInterface $output) {
$options = [
'db-name' => __('Database name:'), // Required
'db-user' => __('Database user:'), // Required
'db-password' => __('Database password:'), // Prompt if null (passed without value)
$questions = [
'db-name' => new Question(__('Database name:'), ''), // Required
'db-user' => new Question(__('Database user:'), ''), // Required
'db-password' => new Question(__('Database password:'), ''), // Prompt if null (passed without value)
];
foreach ($options as $name => $label) {
$questions['db-password']->setHidden(true); // Make password input hidden
foreach ($questions as $name => $question) {
if (null === $input->getOption($name)) {
/** @var \Symfony\Component\Console\Helper\QuestionHelper $question_helper */
$question_helper = $this->getHelper('question');
$value = $question_helper->ask(
$input,
$output,
new Question($label, '')
);
$value = $question_helper->ask($input, $output, $question);
$input->setOption($name, $value);
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment