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

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy