protected function getBufferedOutput(OutputInterface $output, $verbosity = null)
    {
        $buffer = new BufferedOutput();
        $buffer->setDecorated($output->isDecorated());
        $buffer->setFormatter($output->getFormatter());
        if ($verbosity === null) {
            $buffer->setVerbosity($output->getVerbosity());
        } else {
            $buffer->setVerbosity($verbosity);
        }

        return $buffer;
    }
protected function getBufferedOutput(OutputInterface $output, $verbosity = null)
    {
        $buffer = new BufferedOutput();
        $buffer->setDecorated($output->isDecorated());
        $buffer->setFormatter($output->getFormatter());
        if ($verbosity === null) {
            $buffer->setVerbosity($output->getVerbosity());
        } else {
            $buffer->setVerbosity($verbosity);
        }

        return $buffer;
    }
protected function getBufferedOutput ( OutputInterface $ output , $ verbosity = null ) { $ buffer = new BufferedOutput ( ) ; $ buffer -> setDecorated ( $ output -> isDecorated ( ) ) ; $ buffer -> setFormatter ( $ output -> getFormatter ( ) ) ; if ( $ verbosity === null ) { $ buffer -> setVerbosity ( $ output -> getVerbosity ( ) ) ; } else { $ buffer -> setVerbosity ( $ verbosity ) ; } return $ buffer ; }
Return a pre-configured output buffer, with the same formatter and
decorator in use for the passed output, with optionally separate
verbosity level.

@param OutputInterface $output
@param int             $verbosity

@return BufferedOutput
Return a pre - configured output buffer with the same formatter and decorator in use for the passed output with optionally separate verbosity level .