You are here

public function SymfonyStyle::confirm in Zircon Profile 8.0

Same name and namespace in other branches
  1. 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\Style

Code

public function confirm($question, $default = true) {
  return $this
    ->askQuestion(new ConfirmationQuestion($question, $default));
}