diff --git a/components/console/helpers/dialoghelper.rst b/components/console/helpers/dialoghelper.rst index 781d61f6d94..4eaa3910de6 100644 --- a/components/console/helpers/dialoghelper.rst +++ b/components/console/helpers/dialoghelper.rst @@ -185,7 +185,7 @@ Instead, you can use the method, which makes sure that the user can only enter a valid string from a predefined list:: - $dialog = $app->getHelperSet()->get('dialog'); + $dialog = $this->getHelperSet()->get('dialog'); $colors = array('red', 'blue', 'yellow'); $color = $dialog->select(