interface StyleInterface
Output style helpers.
title(string $message) Formats a command title. | ||
section(string $message) Formats a section title. | ||
listing(array $elements) Formats a list. | ||
text(string|array $message) Formats informational text. | ||
success(string|array $message) Formats a success result bar. | ||
error(string|array $message) Formats an error result bar. | ||
warning(string|array $message) Formats an warning result bar. | ||
note(string|array $message) Formats a note admonition. | ||
caution(string|array $message) Formats a caution admonition. | ||
table(array $headers, array $rows) Formats a table. | ||
mixed | ask(string $question, string|null $default = null, callable|null $validator = null) Asks a question. | |
mixed | askHidden(string $question, callable|null $validator = null) Asks a question with the user input hidden. | |
bool | confirm(string $question, bool $default = true) Asks for confirmation. | |
mixed | choice(string $question, array $choices, string|int|null $default = null) Asks a choice question. | |
newLine(int $count = 1) Add newline(s). | ||
progressStart(int $max = 0) Starts the progress output. | ||
progressAdvance(int $step = 1) Advances the progress output X steps. | ||
progressFinish() Finishes the progress output. |
Formats a command title.
string | $message |
Formats a section title.
string | $message |
Formats a list.
array | $elements |
Formats informational text.
string|array | $message |
Formats a success result bar.
string|array | $message |
Formats an error result bar.
string|array | $message |
Formats an warning result bar.
string|array | $message |
Formats a note admonition.
string|array | $message |
Formats a caution admonition.
string|array | $message |
Formats a table.
array | $headers | |
array | $rows |
Asks a question.
string | $question | |
string|null | $default | |
callable|null | $validator |
mixed |
Asks a question with the user input hidden.
string | $question | |
callable|null | $validator |
mixed |
Asks for confirmation.
string | $question | |
bool | $default |
bool |
Asks a choice question.
string | $question | |
array | $choices | |
string|int|null | $default |
mixed |
Add newline(s).
int | $count | The number of newlines |
Starts the progress output.
int | $max | Maximum steps (0 if unknown) |
Advances the progress output X steps.
int | $step | Number of steps to advance |
Finishes the progress output.
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/Console/Style/StyleInterface.html