[Console] Option to disable stty

This commit is contained in:
Johannes Mueller 2016-12-12 21:39:01 +01:00 committed by Fabien Potencier
parent 51bc35cc84
commit a189a6c52e

View File

@ -116,6 +116,14 @@ class QuestionHelper extends Helper
return 'question';
}
/**
* Prevents usage of stty.
*/
public static function disableStty()
{
self::$stty = false;
}
/**
* Asks the question to the user.
*