@@ 122-140 (lines=19) @@ | ||
119 | } |
|
120 | } |
|
121 | ||
122 | public function askAndValidate( |
|
123 | $question, |
|
124 | $validator, |
|
125 | $defaultValue = null, |
|
126 | array $autoComplete = null |
|
127 | ) { |
|
128 | $validationQuestion = new Question( |
|
129 | $this->getQuestionHelper()->getQuestion($question, $defaultValue), |
|
130 | $defaultValue |
|
131 | ); |
|
132 | $validationQuestion->setAutocompleterValues($autoComplete); |
|
133 | $validationQuestion->setValidator($validator); |
|
134 | ||
135 | return $this->getQuestionHelper()->ask( |
|
136 | $this->input, |
|
137 | $this->output, |
|
138 | $validationQuestion |
|
139 | ); |
|
140 | } |
|
141 | ||
142 | public function askConfirmation( |
|
143 | $question, |
|
@@ 163-175 (lines=13) @@ | ||
160 | ); |
|
161 | } |
|
162 | ||
163 | public function ask($question, $default = null, array $autoComplete = null) |
|
164 | { |
|
165 | $askQuestion = new Question( |
|
166 | $this->questionHelper->getQuestion($question, $default), $default |
|
167 | ); |
|
168 | $askQuestion->setAutocompleterValues($autoComplete); |
|
169 | ||
170 | return $this->getQuestionHelper()->ask( |
|
171 | $this->input, |
|
172 | $this->output, |
|
173 | $askQuestion |
|
174 | ); |
|
175 | } |
|
176 | ||
177 | public function askSelect( |
|
178 | $question, |