You are here

public function SymfonyStyle::write 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::write()

Writes a message to the output.

Parameters

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

bool $newline Whether to add a newline:

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

Throws

\InvalidArgumentException When unknown output type is given

Overrides OutputStyle::write

File

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

Class

SymfonyStyle
Output decorator helpers for the Symfony Style Guide.

Namespace

Symfony\Component\Console\Style

Code

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