Skip to content

Commit

Permalink
Add new required Symfony method. Only used in Symfony 5; ignored by e…
Browse files Browse the repository at this point in the history
…arlier Symfony versions.
  • Loading branch information
greg-1-anderson committed Jan 31, 2022
1 parent cc4ae54 commit e3acd1c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/Symfony/BufferedConsoleOutput.php
Expand Up @@ -5,6 +5,7 @@
use Symfony\Component\Console\Formatter\OutputFormatterInterface;
use Symfony\Component\Console\Output\BufferedOutput;
use Symfony\Component\Console\Output\ConsoleOutputInterface;
use Symfony\Component\Console\Output\ConsoleSectionOutput;
use Symfony\Component\Console\Output\OutputInterface;

/**
Expand Down Expand Up @@ -41,4 +42,12 @@ public function setErrorOutput(OutputInterface $error): void
{
$this->stderr = $error;
}

/**
* {@inheritdoc}
*/
public function section(): ConsoleSectionOutput
{
return new ConsoleSectionOutput($this->getStream(), $this->consoleSectionOutputs, $this->getVerbosity(), $this->isDecorated(), $this->getFormatter());
}
}

0 comments on commit e3acd1c

Please sign in to comment.