You are here

public function SymfonyStyle::writeln in Zircon Profile 8.0

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

5 calls to SymfonyStyle::writeln()
SymfonyStyle::block in vendor/symfony/console/Style/SymfonyStyle.php
Formats a message as a block of text.
SymfonyStyle::listing in vendor/symfony/console/Style/SymfonyStyle.php
Formats a list.
SymfonyStyle::section in vendor/symfony/console/Style/SymfonyStyle.php
Formats a section title.
SymfonyStyle::text in vendor/symfony/console/Style/SymfonyStyle.php
Formats informational text.
SymfonyStyle::title in vendor/symfony/console/Style/SymfonyStyle.php
Formats a command title.

File

vendor/symfony/console/Style/SymfonyStyle.php, line 334

Class

SymfonyStyle
Output decorator helpers for the Symfony Style Guide.

Namespace

Symfony\Component\Console\Style

Code

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