From c48d59592218579ecc62ba08a88624bf3a753158 Mon Sep 17 00:00:00 2001 From: SpacePossum Date: Mon, 3 Jul 2017 11:39:41 +0200 Subject: [PATCH] Update questionhelper.rst --- components/console/helpers/questionhelper.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/console/helpers/questionhelper.rst b/components/console/helpers/questionhelper.rst index a4e9ca3a670..415a61c818b 100644 --- a/components/console/helpers/questionhelper.rst +++ b/components/console/helpers/questionhelper.rst @@ -212,6 +212,7 @@ convenient for passwords:: On Windows systems, this ``stty`` command may generate gibberish output and mangle the input text. If that's your case, disable it with this command:: + use Symfony\Component\Console\Helper\QuestionHelper; use Symfony\Component\Console\Question\ChoiceQuestion; // ... @@ -219,7 +220,7 @@ convenient for passwords:: { // ... $helper = $this->getHelper('question'); - $helper->disableStty(); + QuestionHelper::disableStty(); // ... }