You are here

public function NullOutput::getFormatter in Zircon Profile 8

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

Returns current output formatter instance.

Return value

OutputFormatterInterface

Overrides OutputInterface::getFormatter

File

vendor/symfony/console/Output/NullOutput.php, line 38

Class

NullOutput
NullOutput suppresses all output.

Namespace

Symfony\Component\Console\Output

Code

public function getFormatter() {

  // to comply with the interface we must return a OutputFormatterInterface
  return new OutputFormatter();
}