public function SymfonyStyle::askHidden in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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\StyleCode
public function askHidden($question, $validator = null) {
$question = new Question($question);
$question
->setHidden(true);
$question
->setValidator($validator);
return $this
->askQuestion($question);
}