Skip to content

[Components][Console] Fix askConfirmation() description #3265

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Dec 18, 2013
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions components/console/helpers/dialoghelper.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,12 @@ 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
:method:`Symfony\\Component\\Console\\Helper\\DialogHelper::askConfirmation`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no need to use the api link twice imo

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where is the first usage?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's no prior usage.

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
-------------------------------
Expand Down