8000 minor #12737 [Console] Adding a deprecation note about DialogHelper (… · symfony/symfony@6e20596 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6e20596

Browse files
committed
minor #12737 [Console] Adding a deprecation note about DialogHelper (rodrigobb)
This PR was squashed before being merged into the 2.7 branch (closes #12737). Discussion ---------- [Console] Adding a deprecation note about DialogHelper | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | yes | Tests pass? | yes | Fixed tickets | #12704 | License | MIT | Doc PR | - Commits ------- 673c253 [Console] Adding a deprecation note about DialogHelper
2 parents 3467bf0 + 673c253 commit 6e20596

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,20 @@
2020
* @author Fabien Potencier <fabien@symfony.com>
2121
*
2222
* @deprecated Deprecated since version 2.5, to be removed in 3.0.
23-
* Use the question helper instead.
23+
* Use {@link \Symfony\Component\Console\Helper\QuestionHelper} instead.
2424
*/
2525
class DialogHelper extends InputAwareHelper
2626
{
2727
private $inputStream;
2828
private static $shell;
2929
private static $stty;
3030

31+
public function __construct()
32+
{
33+
trigger_error('DialogHelper is deprecated since version 2.5 and will be removed in 3.0. Use QuestionHelper instead.', E_USER_DEPRECATED);
34+
35+
parent::__construct();
36+
}
3137
/**
3238
* Asks the user to select a value.
3339
*

0 commit comments

Comments
 (0)
0