public function SymfonyStyle::confirm in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/console/Style/SymfonyStyle.php \Symfony\Component\Console\Style\SymfonyStyle::confirm()
Asks for confirmation.
Parameters
string $question:
bool $default:
Return value
bool
Overrides StyleInterface::confirm
File
- vendor/
symfony/ console/ Style/ SymfonyStyle.php, line 245
Class
- SymfonyStyle
- Output decorator helpers for the Symfony Style Guide.
Namespace
Symfony\Component\Console\StyleCode
public function confirm($question, $default = true) {
return $this
->askQuestion(new ConfirmationQuestion($question, $default));
}