You are here

public function SymfonyStyle::askHidden 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::askHidden()

Asks a question with the user input hidden.

Parameters

string $question:

callable|null $validator:

Return value

string

Overrides StyleInterface::askHidden

File

vendor/symfony/console/Style/SymfonyStyle.php, line 232

Class

SymfonyStyle
Output decorator helpers for the Symfony Style Guide.

Namespace

Symfony\Component\Console\Style

Code

public function askHidden($question, $validator = null) {
  $question = new Question($question);
  $question
    ->setHidden(true);
  $question
    ->setValidator($validator);
  return $this
    ->askQuestion($question);
}