function ConfirmationQuestion::__construct
Parameters
string $question The question to ask to the user:
bool $default The default answer to return, true or false:
string $trueAnswerRegex A regex to match the "yes" answer:
Overrides Question::__construct
File
-
vendor/
symfony/ console/ Question/ ConfirmationQuestion.php, line 26
Class
- ConfirmationQuestion
- Represents a yes/no question.
Namespace
Symfony\Component\Console\QuestionCode
public function __construct(string $question, bool $default = true, string $trueAnswerRegex = '/^y/i') {
parent::__construct($question, $default);
$this->setNormalizer($this->getDefaultNormalizer());
}