Eva\EvaEngine\CLI\Output\ConsoleOutput::__construct PHP Method

__construct() public method

Constructor.
public __construct ( integer $verbosity = self::VERBOSITY_NORMAL, boolean | null $decorated = null, Eva\EvaEngine\CLI\Formatter\OutputFormatterInterface $formatter = null )
$verbosity integer The verbosity level (one of the VERBOSITY constants in OutputInterface)
$decorated boolean | null Whether to decorate messages (null for auto-guessing)
$formatter Eva\EvaEngine\CLI\Formatter\OutputFormatterInterface Output formatter instance (null to use default OutputFormatter)
    public function __construct($verbosity = self::VERBOSITY_NORMAL, $decorated = null, OutputFormatterInterface $formatter = null)
    {
        $outputStream = 'php://stdout';
        if (!$this->hasStdoutSupport()) {
            $outputStream = 'php://output';
        }
        parent::__construct(fopen($outputStream, 'w'), $verbosity, $decorated, $formatter);
        $this->stderr = new StreamOutput(fopen('php://stderr', 'w'), $verbosity, $decorated, $this->getFormatter());
    }