Methods |
public
|
__construct(InputInterface $input, OutputInterface $output)
|
#
|
public
|
block(
string|array $messages,
string $type = null,
string $style = null,
string $prefix = ' ',
bool $padding = false,
bool $escape = true,
)
Formats a message as a block of text.
Formats a message as a block of text.
Parameters
$messages |
The message to write in the block
|
|
#
|
public
|
title(string $message)
{@inheritdoc}
|
#
|
public
|
section(string $message)
{@inheritdoc}
|
#
|
public
|
listing(array $elements)
{@inheritdoc}
|
#
|
public
|
text($message)
{@inheritdoc}
|
#
|
public
|
comment(string|array $message)
Formats a command comment.
Formats a command comment.
|
#
|
public
|
success($message)
{@inheritdoc}
|
#
|
public
|
error($message)
{@inheritdoc}
|
#
|
public
|
warning($message)
{@inheritdoc}
|
#
|
public
|
note($message)
{@inheritdoc}
|
#
|
public
|
info(string|array $message)
Formats an info message.
|
#
|
public
|
caution($message)
{@inheritdoc}
|
#
|
public
|
table(array $headers, array $rows)
{@inheritdoc}
|
#
|
public
|
horizontalTable(array $headers, array $rows)
Formats a horizontal table.
Formats a horizontal table.
|
#
|
public
|
definitionList(string|array|TableSeparator ...$list)
Formats a list of key/value horizontally.
Formats a list of key/value horizontally.
Each row can be one of:
- 'A title'
- ['key' => 'value']
- new TableSeparator()
|
#
|
public
|
ask(string $question, string $default = null, callable $validator = null)
{@inheritdoc}
|
#
|
public
|
askHidden(string $question, callable $validator = null)
{@inheritdoc}
|
#
|
public
|
confirm(string $question, bool $default = true)
{@inheritdoc}
|
#
|
public
|
choice(string $question, array $choices, $default = null)
{@inheritdoc}
|
#
|
public
|
progressStart(int $max = 0)
{@inheritdoc}
|
#
|
public
|
progressAdvance(int $step = 1)
{@inheritdoc}
|
#
|
public
|
progressFinish()
{@inheritdoc}
|
#
|
public
|
createProgressBar(int $max = 0)
{@inheritdoc}
|
#
|
public
|
progressIterate(iterable $iterable, int $max = null): iterable
|
#
|
public
|
askQuestion(Question $question): mixed
|
#
|
public
|
writeln($messages, int $type = self::OUTPUT_NORMAL)
{@inheritdoc}
Parameters
$messages |
The message as an iterable of strings or a single string
|
$type |
A bitmask of options (one of the OUTPUT or VERBOSITY constants), 0 is considered the same as self::OUTPUT_NORMAL | self::VERBOSITY_NORMAL
|
Overrides
|
#
|
public
|
write($messages, bool $newline = false, int $type = self::OUTPUT_NORMAL)
{@inheritdoc}
Parameters
$messages |
The message as an iterable of strings or a single string
|
$newline |
Whether to add a newline
|
$type |
A bitmask of options (one of the OUTPUT or VERBOSITY constants), 0 is considered the same as self::OUTPUT_NORMAL | self::VERBOSITY_NORMAL
|
Overrides
|
#
|
public
|
newLine(int $count = 1)
{@inheritdoc}
|
#
|
public
|
getErrorStyle(): self
Returns a new instance which makes use of stderr if available.
Returns a new instance which makes use of stderr if available.
|
#
|
public
|
createTable(): Table
|
#
|