You are here

public function OutputStyle::writeln in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/console/Style/OutputStyle.php \Symfony\Component\Console\Style\OutputStyle::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

1 call to OutputStyle::writeln()
SymfonyStyle::writeln in vendor/symfony/console/Style/SymfonyStyle.php
Writes a message to the output and adds a newline at the end.
1 method overrides OutputStyle::writeln()
SymfonyStyle::writeln in vendor/symfony/console/Style/SymfonyStyle.php
Writes a message to the output and adds a newline at the end.

File

vendor/symfony/console/Style/OutputStyle.php, line 64

Class

OutputStyle
Decorates output to add console style guide helpers.

Namespace

Symfony\Component\Console\Style

Code

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