Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Console] testing with askConfirmation/ask #2351

Closed
Labels
ConsoleTestingactionableClear and specific issues ready for anyone to take them.
@sstok

Description

@sstok

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ConsoleTestingactionableClear and specific issues ready for anyone to take them.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp