You are here

public function ConsoleOutput::setFormatter in Zircon Profile 8

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

Sets output formatter.

Parameters

OutputFormatterInterface $formatter:

Overrides Output::setFormatter

File

vendor/symfony/console/Output/ConsoleOutput.php, line 67

Class

ConsoleOutput
ConsoleOutput is the default class for all CLI output. It uses STDOUT.

Namespace

Symfony\Component\Console\Output

Code

public function setFormatter(OutputFormatterInterface $formatter) {
  parent::setFormatter($formatter);
  $this->stderr
    ->setFormatter($formatter);
}