setFormatter()
setFormatter(\Symfony\Component\Console\Formatter\OutputFormatterInterface $formatter)
Parameters
\Symfony\Component\Console\Formatter\OutputFormatterInterface | $formatter |
NullOutput suppresses all output.
$output = new NullOutput();
setFormatter(\Symfony\Component\Console\Formatter\OutputFormatterInterface $formatter)
\Symfony\Component\Console\Formatter\OutputFormatterInterface | $formatter |
getFormatter() : \Symfony\Component\Console\Formatter\OutputFormatterInterface
Returns current output formatter instance.
writeln(string|\Symfony\Component\Console\Output\iterable $messages, integer $options = 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 |
integer | $options | A bitmask of options (one of the OUTPUT or VERBOSITY constants), 0 is considered the same as self::OUTPUT_NORMAL | self::VERBOSITY_NORMAL |
write(string|\Symfony\Component\Console\Output\iterable $messages, boolean $newline = false, integer $options = 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 |
integer | $options | A bitmask of options (one of the OUTPUT or VERBOSITY constants), 0 is considered the same as self::OUTPUT_NORMAL | self::VERBOSITY_NORMAL |