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