public function setOutput($output)
    {
        $psrLogBase = self::PSR_LOG_BASE;
        $consoleBase = self::SYMFONY_CONSOLE_BASE;

        if (($output instanceof $psrLogBase) === false && ($output instanceof $consoleBase) === false) {
            $className = get_class($output);
            $message = 'Output class "%s" not supported. Only "%s" or "%s"';
            throw new \Exception(sprintf($message, $className, $psrLogBase, $consoleBase), 1369595109);
        }

        $this->output = $output;
    }
public function setOutput($output)
    {
        $psrLogBase = self::PSR_LOG_BASE;
        $consoleBase = self::SYMFONY_CONSOLE_BASE;

        if (($output instanceof $psrLogBase) === false && ($output instanceof $consoleBase) === false) {
            $className = get_class($output);
            $message = 'Output class "%s" not supported. Only "%s" or "%s"';
            throw new \Exception(sprintf($message, $className, $psrLogBase, $consoleBase), 1369595109);
        }

        $this->output = $output;
    }
public function setOutput ( $ output ) { $ psrLogBase = self :: PSR_LOG_BASE ; $ consoleBase = self :: SYMFONY_CONSOLE_BASE ; if ( ( $ output instanceof $ psrLogBase ) === false && ( $ output instanceof $ consoleBase ) === false ) { $ className = get_class ( $ output ) ; $ message = 'Output class "%s" not supported. Only "%s" or "%s"' ; throw new \ Exception ( sprintf ( $ message , $ className , $ psrLogBase , $ consoleBase ) , 1369595109 ) ; } $ this -> output = $ output ; }
Sets the output object for CLI output

@param \Symfony\Component\Console\Output\OutputInterface|\Monolog\Logger $output The output object
@throws \Exception
@return void
Sets the output object for CLI output