Symfony\Component\Console\Output\OutputInterface::write
Writes a message to the output.
Signature
public function write(string|array
$messages,
[Boolean
$newline = false,
[integer
$type = self::OUTPUT_NORMAL]] )
Parameters
$messages
— object- The message as an array of lines or a single string
$newline
— object- Whether to add a newline
$type
— integer- The type of output (one of the OUTPUT constants)
Errors/Exceptions
-
InvalidArgumentException
- When unknown output type is given