8000 Adding a deprecation note about DialogHelper · symfony/symfony@9df998c · GitHub
[go: up one dir, main page]

Skip to content

Commit 9df998c

Browse files
committed
Adding a deprecation note about DialogHelper
1 parent 22999f7 commit 9df998c

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+
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