Skip to content

Commit

Permalink
#1159 Use ConsoleOutput as default
Browse files Browse the repository at this point in the history
  • Loading branch information
j3nsch committed Nov 21, 2023
1 parent 2d153ff commit 498cf89
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions library/Application/Document/DuplicateFinder.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
use Opus\Common\Document;
use Opus\Common\DocumentInterface;
use Opus\Common\Repository;
use Symfony\Component\Console\Output\ConsoleOutput;
use Symfony\Component\Console\Output\OutputInterface;

/**
Expand Down Expand Up @@ -199,6 +200,9 @@ public function setOutput($output)
*/
public function getOutput()
{
if ($this->output === null) {
$this->output = new ConsoleOutput();
}
return $this->output;
}

Expand Down

0 comments on commit 498cf89

Please sign in to comment.