You are here

public function OutputStyle::write 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::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 OutputInterface::write

1 call to OutputStyle::write()
SymfonyStyle::write in vendor/symfony/console/Style/SymfonyStyle.php
Writes a message to the output.
1 method overrides OutputStyle::write()
SymfonyStyle::write in vendor/symfony/console/Style/SymfonyStyle.php
Writes a message to the output.

File

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

Class

OutputStyle
Decorates output to add console style guide helpers.

Namespace

Symfony\Component\Console\Style

Code

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