Symfony\Component\Console\Helper\DialogHelper::askHiddenResponse
Asks a question to the user, the response is hidden
Signature
public function askHiddenResponse(OutputInterface
$output,
[string|array
$question = true,
[Boolean
$fallback = true]] )
Parameters
$output
— Symfony\Component\Console\Output\OutputInterface- An Output instance
$question
— object- The question
$fallback
— object- In case the response can not be hidden, whether to fallback on non-hidden question or not
Returns
- string
- The answer
Errors/Exceptions
-
RuntimeException
- In case the fallback is deactivated and the response can not be hidden