function IOInterface::askConfirmation
Asks a confirmation to the user.
The question will be asked until the user answers by nothing, yes, or no.
Parameters
string $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
2 methods override IOInterface::askConfirmation()
- ConsoleIO::askConfirmation in vendor/
composer/ composer/ src/ Composer/ IO/ ConsoleIO.php - @inheritDoc
- NullIO::askConfirmation in vendor/
composer/ composer/ src/ Composer/ IO/ NullIO.php - @inheritDoc
File
-
vendor/
composer/ composer/ src/ Composer/ IO/ IOInterface.php, line 155
Class
- IOInterface
- The Input/Output helper interface.
Namespace
Composer\IOCode
public function askConfirmation(string $question, bool $default = true);