Closed
Description
The documentation is missing an example how to test a command that uses askConfirmation() or ask().
/** @var \Symfony\Component\Console\Helper\DialogHelper $dialog */
$dialog = $this->getHelperSet()->get('dialog');
if (!$dialog->askConfirmation(..)) {
// Do something.
}
As this is a really useful feature and not to hard document (I guess), I suggest adding this for Symfony Docs Hack Day.