@@ 57-60 (lines=4) @@ | ||
54 | $this->output->writeln("\n"); |
|
55 | if ($argumentname) { |
|
56 | $var = $this->input->getArgument($argumentname); |
|
57 | if (!$var) { |
|
58 | $question = new Question('<question>' . $message . '</question> '); |
|
59 | $var = $this->dialog->ask($this->input, $this->output, $question); |
|
60 | } |
|
61 | } elseif ($default) { |
|
62 | if ($this->noInteraction) { |
|
63 | $this->dialogProvider->logNotice("--no-interaction selected, using " . $default); |
|
@@ 65-68 (lines=4) @@ | ||
62 | if ($this->noInteraction) { |
|
63 | $this->dialogProvider->logNotice("--no-interaction selected, using " . $default); |
|
64 | $var = $default; |
|
65 | } else { |
|
66 | $question = new Question('<question>' . $message . ': [' . $default . ']</question> ', $default); |
|
67 | $var = $this->dialog->ask($this->input, $this->output, $question); |
|
68 | } |
|
69 | } else { |
|
70 | $question = new Question('<question>' . $message . '</question> '); |
|
71 | $var = $this->dialog->ask($this->input, $this->output, $question); |
|
@@ 69-72 (lines=4) @@ | ||
66 | $question = new Question('<question>' . $message . ': [' . $default . ']</question> ', $default); |
|
67 | $var = $this->dialog->ask($this->input, $this->output, $question); |
|
68 | } |
|
69 | } else { |
|
70 | $question = new Question('<question>' . $message . '</question> '); |
|
71 | $var = $this->dialog->ask($this->input, $this->output, $question); |
|
72 | } |
|
73 | ||
74 | return $var; |
|
75 | } |