You are here

public function Output::writeln in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/console/Output/Output.php \Symfony\Component\Console\Output\Output::writeln()

Writes a message to the output and adds a newline at the end.

Parameters

string|array $messages The message as an array of lines or a single string:

int $type The type of output (one of the OUTPUT constants):

Throws

\InvalidArgumentException When unknown output type is given

Overrides OutputInterface::writeln

File

vendor/symfony/console/Output/Output.php, line 120

Class

Output
Base class for output classes.

Namespace

Symfony\Component\Console\Output

Code

public function writeln($messages, $type = self::OUTPUT_NORMAL) {
  $this
    ->write($messages, true, $type);
}