MAX_LINE_LENGTH
MAX_LINE_LENGTH = 120
Output decorator helpers for the Symfony Style Guide.
__construct(\Symfony\Component\Console\Input\InputInterface $input, \Symfony\Component\Console\Output\OutputInterface $output)
\Symfony\Component\Console\Input\InputInterface | $input | |
\Symfony\Component\Console\Output\OutputInterface | $output |
write(string|\Symfony\Component\Console\Output\iterable $messages, boolean $newline = false, $type = self::OUTPUT_NORMAL)
Writes a message to the output.
string|\Symfony\Component\Console\Output\iterable | $messages | The message as an iterable of strings or a single string |
boolean | $newline | Whether to add a newline |
$type |
writeln(string|\Symfony\Component\Console\Output\iterable $messages, $type = self::OUTPUT_NORMAL)
Writes a message to the output and adds a newline at the end.
string|\Symfony\Component\Console\Output\iterable | $messages | The message as an iterable of strings or a single string |
$type |
setFormatter(\Symfony\Component\Console\Formatter\OutputFormatterInterface $formatter)
\Symfony\Component\Console\Formatter\OutputFormatterInterface | $formatter |
getFormatter() : \Symfony\Component\Console\Formatter\OutputFormatterInterface
Returns current output formatter instance.
block(string|array $messages, string|null $type = null, string|null $style = null, string $prefix = ' ', boolean $padding = false, boolean $escape = true)
Formats a message as a block of text.
string|array | $messages | The message to write in the block |
string|null | $type | The block type (added in [] on first line) |
string|null | $style | The style to apply to the whole block |
string | $prefix | The prefix for the block |
boolean | $padding | Whether to add vertical padding |
boolean | $escape | Whether to escape the message |
askQuestion(\Symfony\Component\Console\Question\Question $question) : mixed
\Symfony\Component\Console\Question\Question | $question |
writeBuffer(\Symfony\Component\Console\Style\string $message, \Symfony\Component\Console\Style\bool $newLine, \Symfony\Component\Console\Style\int $type)
\Symfony\Component\Console\Style\string | $message | |
\Symfony\Component\Console\Style\bool | $newLine | |
\Symfony\Component\Console\Style\int | $type |
createBlock(\Symfony\Component\Console\Style\iterable $messages, \Symfony\Component\Console\Style\string $type = null, \Symfony\Component\Console\Style\string $style = null, \Symfony\Component\Console\Style\string $prefix = ' ', \Symfony\Component\Console\Style\bool $padding = false, \Symfony\Component\Console\Style\bool $escape = false)
\Symfony\Component\Console\Style\iterable | $messages | |
\Symfony\Component\Console\Style\string | $type | |
\Symfony\Component\Console\Style\string | $style | |
\Symfony\Component\Console\Style\string | $prefix | |
\Symfony\Component\Console\Style\bool | $padding | |
\Symfony\Component\Console\Style\bool | $escape |