Skip to content

[Console] OutputFormatterStyle for html colors #11392

@rvanlaak

Description

@rvanlaak

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions