8000 [#1822] Minor tweaks to new component "hidden" response docs · symfony/symfony-docs@4a08ca2 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4a08ca2

Browse files
committed
[#1822] Minor tweaks to new component "hidden" response docs
1 parent d75d573 commit 4a08ca2

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

components/console/introduction.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -296,16 +296,16 @@ convenient for passwords::
296296
$dialog = $this->getHelperSet()->get('dialog');
297297
$password = $dialog->askHiddenResponse(
298298
$output,
299-
'What is the database password ?',
299+
'What is the database password?',
300300
false
301301
);
302302

303303
.. caution::
304304

305-
When you ask an hidden response, Symfony will use either a binary, change
305+
When you ask for a hidden response, Symfony will use either a binary, change
306306
stty mode or use another trick to hide the response. If none is available,
307-
it will fallback on the classic question unless you pass ``false`` as the
308-
third argument like in the example above. In this case, a RuntimeException
307+
it will fallback and allow the response to be visible unless you pass ``false``
308+
as the third argument like in the example above. In this case, a RuntimeException
309309
would be thrown.
310310

311311
Ask and validate response
@@ -336,7 +336,7 @@ fifth argument is the default value.
336336
.. versionadded:: 2.2
337337
The ``askHiddenResponseAndValidate`` method was added in Symfony 2.2.
338338

339-
You can also ask and validate hidden response::
339+
You can also ask and validate a hidden response::
340340

341341
$dialog = $this->getHelperSet()->get('dialog');
342342

@@ -354,8 +354,8 @@ You can also ask and validate hidden response::
354354
false
355355
);
356356

357-
If you want to fallback on classic question in case hidden response can not be
358-
provided, pass true as fifth argument.
357+
If you want to allow the response to be visible if it cannot be hidden for
358+
some reason, pass true as the fifth argument.
359359

360360
Displaying a Progress Bar
361361
-------------------------

0 commit comments

Comments
 (0)
0