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

Appearance settings

Commit afc34cf

Browse filesBrowse files
committed
feature #10606 [Console] added a better way to ask questions to the user (fabpot, romainneutron)
This PR was merged into the 2.5-dev branch. Discussion ---------- [Console] added a better way to ask questions to the user | Q | A | ------------- | --- | Bug fix? | no | New feature? | yes | BC breaks? | no | Deprecations? | yes | Tests pass? | yes | Fixed tickets | n/a | License | MIT | Doc PR | not yet This PR replaces #9811 - [x] add missing phpdocs - [x] add unit tests - [ ] submit doc PR Commits ------- 336bba2 [Console] Add docblocks and unit tests to QuestionHelper c413f89 [Console] added a better way to ask questions to the user
2 parents 01f21e3 + 336bba2 commit afc34cf
Copy full SHA for afc34cf

File tree

Expand file treeCollapse file tree

9 files changed

+1081
-1
lines changed
Filter options
Expand file treeCollapse file tree

9 files changed

+1081
-1
lines changed

‎UPGRADE-3.0.md

Copy file name to clipboardExpand all lines: UPGRADE-3.0.md
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ UPGRADE FROM 2.x to 3.0
2020

2121
### Console
2222

23+
* The `dialog` helper has been removed in favor of the `question` helper.
24+
2325
* The methods `isQuiet`, `isVerbose`, `isVeryVerbose` and `isDebug` were added
2426
to `Symfony\Component\Console\Output\OutputInterface`.
2527

‎src/Symfony/Component/Console/Application.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Console/Application.php
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
use Symfony\Component\Console\Descriptor\TextDescriptor;
1515
use Symfony\Component\Console\Descriptor\XmlDescriptor;
16+
use Symfony\Component\Console\Helper\QuestionHelper;
1617
use Symfony\Component\Console\Input\InputInterface;
1718
use Symfony\Component\Console\Input\ArgvInput;
1819
use Symfony\Component\Console\Input\ArrayInput;
@@ -968,6 +969,7 @@ protected function getDefaultHelperSet()
968969
new DialogHelper(),
969970
new ProgressHelper(),
970971
new TableHelper(),
972+
new QuestionHelper(),
971973
));
972974
}
973975

‎src/Symfony/Component/Console/CHANGELOG.md

Copy file name to clipboardExpand all lines: src/Symfony/Component/Console/CHANGELOG.md
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,12 @@ CHANGELOG
44
2.5.0
55
-----
66

7+
* deprecated the dialog helper (use the question helper instead)
78
* deprecated TableHelper in favor of Table
89
* deprecated ProgressHelper in favor of ProgressBar
10+
* added a question helper
11+
* added a way to set the process name of a command
912
* added a way to set a default command instead of `ListCommand`
10-
* added a way to set the process title of a command
1113

1214
2.4.0
1315
-----

‎src/Symfony/Component/Console/Helper/DialogHelper.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Console/Helper/DialogHelper.php
+3Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@
1818
* The Dialog class provides helpers to interact with the user.
1919
*
2020
* @author Fabien Potencier <fabien@symfony.com>
21+
*
22+
* @deprecated Deprecated since version 2.5, to be removed in 3.0.
23+
* Use the question helper instead.
2124
*/
2225
class DialogHelper extends InputAwareHelper
2326
{

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.