function QuestionHelper::isInteractiveInput
1 call to QuestionHelper::isInteractiveInput()
- QuestionHelper::getHiddenResponse in vendor/
symfony/ console/ Helper/ QuestionHelper.php - Gets a hidden response from user.
File
-
vendor/
symfony/ console/ Helper/ QuestionHelper.php, line 483
Class
- QuestionHelper
- The QuestionHelper class provides helpers to interact with the user.
Namespace
Symfony\Component\Console\HelperCode
private function isInteractiveInput($inputStream) : bool {
if ('php://stdin' !== (stream_get_meta_data($inputStream)['uri'] ?? null)) {
return false;
}
if (isset(self::$stdinIsInteractive)) {
return self::$stdinIsInteractive;
}
return self::$stdinIsInteractive = @stream_isatty(fopen('php://stdin', 'r'));
}