|
|
@ -700,14 +700,14 @@ class BaseConsole |
|
|
|
public static function prompt($text, $options = array()) |
|
|
|
public static function prompt($text, $options = array()) |
|
|
|
{ |
|
|
|
{ |
|
|
|
$options = ArrayHelper::merge( |
|
|
|
$options = ArrayHelper::merge( |
|
|
|
$options, |
|
|
|
|
|
|
|
array( |
|
|
|
array( |
|
|
|
'required' => false, |
|
|
|
'required' => false, |
|
|
|
'default' => null, |
|
|
|
'default' => null, |
|
|
|
'pattern' => null, |
|
|
|
'pattern' => null, |
|
|
|
'validator' => null, |
|
|
|
'validator' => null, |
|
|
|
'error' => 'Invalid input.', |
|
|
|
'error' => 'Invalid input.', |
|
|
|
) |
|
|
|
), |
|
|
|
|
|
|
|
$options |
|
|
|
); |
|
|
|
); |
|
|
|
$error = null; |
|
|
|
$error = null; |
|
|
|
|
|
|
|
|
|
|
|