-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
Closed
Description
Currently the OutputFormatter of the Console command nicely colors the output when used on cli.
Some of the command I've created are executed via a backend setup module, the output is returned to the controller using a StreamOutput
$application = new Application($this->get('kernel'));
$application->setAutoExit(false);
$fp = tmpfile();
$output = new StreamOutput($fp, StreamOutput::VERBOSITY_NORMAL, <new HtmlFormatter()>);
$application->run(new ArrayInput($options), $output);
Feature: a new OutputFormatterStyle to format the output according with html colors / bold / etc
This could be part of the DX-initiative (?)
Metadata
Metadata
Assignees
Labels
No labels