ask |
( |
|
$question, |
|
|
|
$default = null , |
|
|
|
$validator = null |
|
) |
| |
Asks a question.
- Parameters
-
string | $question | |
string | null | $default | |
callable | null | $validator | |
- Returns
- string
Implemented in SymfonyStyle.
askHidden |
( |
|
$question, |
|
|
|
$validator = null |
|
) |
| |
Asks a question with the user input hidden.
- Parameters
-
string | $question | |
callable | null | $validator | |
- Returns
- string
Implemented in SymfonyStyle.
Formats a caution admonition.
- Parameters
-
Implemented in SymfonyStyle.
choice |
( |
|
$question, |
|
|
array |
$choices, |
|
|
|
$default = null |
|
) |
| |
Asks a choice question.
- Parameters
-
string | $question | |
array | $choices | |
string | int | null | $default | |
- Returns
- string
Implemented in SymfonyStyle.
confirm |
( |
|
$question, |
|
|
|
$default = true |
|
) |
| |
Asks for confirmation.
- Parameters
-
string | $question | |
bool | $default | |
- Returns
- bool
Implemented in SymfonyStyle.
Formats an error result bar.
- Parameters
-
Implemented in SymfonyStyle.
listing |
( |
array |
$elements | ) |
|
Formats a note admonition.
- Parameters
-
Implemented in SymfonyStyle.
progressAdvance |
( |
|
$step = 1 | ) |
|
Advances the progress output X steps.
- Parameters
-
int | $step | Number of steps to advance |
Implemented in SymfonyStyle.
progressStart |
( |
|
$max = 0 | ) |
|
Starts the progress output.
- Parameters
-
int | $max | Maximum steps (0 if unknown) |
Implemented in SymfonyStyle.
Formats a section title.
- Parameters
-
Implemented in SymfonyStyle.
Formats a success result bar.
- Parameters
-
Implemented in SymfonyStyle.
table |
( |
array |
$headers, |
|
|
array |
$rows |
|
) |
| |
Formats informational text.
- Parameters
-
Implemented in SymfonyStyle.
Formats a command title.
- Parameters
-
Implemented in SymfonyStyle.
Formats an warning result bar.
- Parameters
-
Implemented in SymfonyStyle.