Output decorator helpers for the Symfony Style Guide.
- author Kevin Bond
CloneableInstantiable
Constants |
public Symfony |
Methods |
public __construct(Symfony |
public ask(string $question, ?string $default = NULL, ?callable $validator = NULL) : ?mixed |
public askHidden(string $question, ?callable $validator = NULL) : ?mixed |
public askQuestion(Symfony |
public block(array|string $messages, ?string $type = NULL, ?string $style = NULL, string $prefix = ' ', bool $padding = false, bool $escape = true) : void Formats a message as a block of text. |
public caution(array|string $message) : void |
public choice(string $question, array $choices, ?mixed $default = NULL, bool $multiSelect = false) : ?mixed |
public comment(array|string $message) : void Formats a command comment. |
public confirm(string $question, bool $default = true) : bool |
public createProgressBar(int $max = 0) : Symfony |
public createTable() : Symfony |
public definitionList(Symfony Formats a list of key/value horizontally. Each row can be one of:
|
public error(array|string $message) : void |
public getErrorStyle() : self Returns a new instance which makes use of stderr if available. |
public horizontalTable(array $headers, array $rows) : void Formats a horizontal table. |
public info(array|string $message) : void Formats an info message. |
public listing(array $elements) : void |
public newLine(int $count = 1) : void |
public note(array|string $message) : void |
public progressAdvance(int $step = 1) : void |
public progressFinish() : void |
public progressIterate(iterable $iterable, ?int $max = NULL) : iterable
|
public progressStart(int $max = 0) : void |
public section(string $message) : void |
public success(array|string $message) : void |
public table(array $headers, array $rows) : void |
public text(array|string $message) : void |
public title(string $message) : void |
public warning(array|string $message) : void |
public write(Traversable|array|string $messages, bool $newline = false, int $type = 1self::OUTPUT_NORMAL) : void |
public writeln(Traversable|array|string $messages, int $type = 1self::OUTPUT_NORMAL) : void |
Methods |
Properties |
private Symfony |
private Symfony |
private int $lineLength |
private Symfony |
private Symfony |
private Symfony |
Methods |
private autoPrependBlock() : void |
private autoPrependText() : void |
private createBlock(iterable $messages, ?string $type = NULL, ?string $style = NULL, string $prefix = ' ', bool $padding = false, bool $escape = false) : array |
private getProgressBar() : Symfony |
private writeBuffer(string $message, bool $newLine, int $type) : void |