File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
components/console/helpers Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -72,6 +72,7 @@ method::
72
72
'The name of the bundle should be suffixed with \'Bundle\''
73
73
);
74
74
}
75
+ return $answer;
75
76
},
76
77
false,
77
78
'AcmeDemoBundle'
@@ -89,8 +90,8 @@ This methods has 2 new arguments, the full signature is::
89
90
90
91
The ``$validator `` is a callback which handles the validation. It should
91
92
throw an exception if there is something wrong. The exception message is displayed
92
- in the console, so it is a good practice to put some useful information
93
- in it .
93
+ in the console, so it is a good practice to put some useful information in it. The callback
94
+ function should also return the value of the user's input if the validation was successful .
94
95
95
96
You can set the max number of times to ask in the ``$attempts `` argument.
96
97
If you reach this max number it will use the default value, which is given
You can’t perform that action at this time.
0 commit comments