From ae3b0d7527325a21433f5fba192b3d0ff01d19ec Mon Sep 17 00:00:00 2001 From: Philipp Rieber Date: Tue, 3 Dec 2013 07:31:56 +0100 Subject: [PATCH 1/2] [Components][Console] Fix askConfirmation() description --- components/console/helpers/dialoghelper.rst | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/components/console/helpers/dialoghelper.rst b/components/console/helpers/dialoghelper.rst index 518f22416ba..0666cd8d0b3 100644 --- a/components/console/helpers/dialoghelper.rst +++ b/components/console/helpers/dialoghelper.rst @@ -31,10 +31,11 @@ the following to your command:: return; } -In this case, the user will be asked "Continue with this action?", and will return -``true`` if the user answers with ``y`` or false in any other case. The third -argument to ``askConfirmation`` is the default value to return if the user doesn't -enter any input. +In this case, the user will be asked "Continue with this action?", and will +return ``true`` if the user answers with ``y`` or ``false`` if the user answers +with ``n``. The third argument to ``askConfirmation`` is the default value to +return if the user doesn't enter any input. Any other input will ask the same +question again. Asking the User for Information ------------------------------- From cf7e31f959571d105447222de1301d663fe90899 Mon Sep 17 00:00:00 2001 From: Philipp Rieber Date: Tue, 3 Dec 2013 07:40:16 +0100 Subject: [PATCH 2/2] add API link --- components/console/helpers/dialoghelper.rst | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/components/console/helpers/dialoghelper.rst b/components/console/helpers/dialoghelper.rst index 0666cd8d0b3..8e3e627c8f0 100644 --- a/components/console/helpers/dialoghelper.rst +++ b/components/console/helpers/dialoghelper.rst @@ -33,9 +33,10 @@ the following to your command:: In this case, the user will be asked "Continue with this action?", and will return ``true`` if the user answers with ``y`` or ``false`` if the user answers -with ``n``. The third argument to ``askConfirmation`` is the default value to -return if the user doesn't enter any input. Any other input will ask the same -question again. +with ``n``. The third argument to +:method:`Symfony\\Component\\Console\\Helper\\DialogHelper::askConfirmation` +is the default value to return if the user doesn't enter any input. Any other +input will ask the same question again. Asking the User for Information -------------------------------