@@ 190-197 (lines=8) @@ | ||
187 | /** |
|
188 | * {@inheritDoc} |
|
189 | */ |
|
190 | public function ask($question, $default = null) |
|
191 | { |
|
192 | if ($this->isInteractive()) { |
|
193 | return $this->helperSet->get('dialog')->ask($this->output, $question, $default); |
|
194 | } else { |
|
195 | return $default; |
|
196 | } |
|
197 | } |
|
198 | ||
199 | /** |
|
200 | * {@inheritDoc} |
|
@@ 202-209 (lines=8) @@ | ||
199 | /** |
|
200 | * {@inheritDoc} |
|
201 | */ |
|
202 | public function askConfirmation($question, $default = true) |
|
203 | { |
|
204 | if ($this->isInteractive()) { |
|
205 | return $this->helperSet->get('dialog')->askConfirmation($this->output, $question, $default); |
|
206 | } else { |
|
207 | return $default; |
|
208 | } |
|
209 | } |
|
210 | ||
211 | /** |
|
212 | * {@inheritDoc} |