Doctrine\DBAL\Migrations\Tools\Console\Command\AbstractCommand::getOutputWriter PHP Method

getOutputWriter() private method

private getOutputWriter ( Symfony\Component\Console\Output\OutputInterface $output ) : Doctrine\DBAL\Migrations\OutputWriter
$output Symfony\Component\Console\Output\OutputInterface
return Doctrine\DBAL\Migrations\OutputWriter
    private function getOutputWriter(OutputInterface $output)
    {
        if (!$this->outputWriter) {
            $this->outputWriter = new OutputWriter(function ($message) use($output) {
                return $output->writeln($message);
            });
        }
        return $this->outputWriter;
    }