DialogHelper deprecated::askConfirmation()

bool askConfirmation(OutputInterface $output, string|array $question, bool $default = true)

Asks a confirmation to the user.

The question will be asked until the user answers by nothing, yes, or no.

Parameters

OutputInterface $output An Output instance
string|array $question The question to ask
bool $default The default answer if the user enters nothing

Return Value

bool true if the user has confirmed, false otherwise
doc_Symfony
2016-10-28 06:14:11
Comments
Leave a Comment

Please login to continue.