Asm89\Twig\Lint\Command\LintCommand::getOutput PHP Method

getOutput() protected method

protected getOutput ( Symfony\Component\Console\Output\OutputInterface $output, $format )
$output Symfony\Component\Console\Output\OutputInterface
    protected function getOutput(CliOutputInterface $output, $format)
    {
        switch ($format) {
            case 'csv':
                return new CsvOutput($output);
                break;
            case 'full':
                return new FullOutput($output);
                break;
            default:
                throw new \RuntimeException(sprintf("Unknown output format '%s'.", $format));
        }
    }