From d8059e245d970d2913b8cd6ea5252edf13927cb3 Mon Sep 17 00:00:00 2001 From: Andrew M Date: Wed, 16 Apr 2014 10:18:39 +0300 Subject: [PATCH] Add missing autocomplete argument in askAndValidate method --- components/console/helpers/dialoghelper.rst | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/components/console/helpers/dialoghelper.rst b/components/console/helpers/dialoghelper.rst index 3abf50b4a47..6917d807235 100644 --- a/components/console/helpers/dialoghelper.rst +++ b/components/console/helpers/dialoghelper.rst @@ -130,7 +130,8 @@ This methods has 2 new arguments, the full signature is:: string|array $question, callback $validator, integer $attempts = false, - string $default = null + string $default = null, + array $autocomplete = null ) The ``$validator`` is a callback which handles the validation. It should @@ -139,8 +140,8 @@ in the console, so it is a good practice to put some useful information in it. T function should also return the value of the user's input if the validation was successful. You can set the max number of times to ask in the ``$attempts`` argument. -If you reach this max number it will use the default value, which is given -in the last argument. Using ``false`` means the amount of attempts is infinite. +If you reach this max number it will use the default value. +Using ``false`` means the amount of attempts is infinite. The user will be asked as long as they provide an invalid answer and will only be able to proceed if their input is valid.