Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork5.2k
[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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
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` |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
It also works for 'yes' and 'no' afaik |
Seems that everything starting with |
[Components][Console] Fix askConfirmation() description
I like it, and agree that it's probably not really important that someone knows that yes/no and other combinations work. They want the user to be asked something, this explains that nicely. Thanks everyone! |
askConfirmation()
only terminates on enteringy
,n
or nothing. API link added.