public function __construct(OutputInterface $output = null) { $this->output = $output ?: new StreamOutput(fopen('php://output', 'w')); if (PHP_SAPI != 'cli') { ob_implicit_flush(true); @ob_end_flush(); $this->output->setFormatter(new HtmlOutputFormatter()); } }