Skip to content

Improved output of debug route collection #59767

@mamazu

Description

@mamazu

Description

When using the bin/console debug:router command, I always find it lacks the info I'm interested in, like for example the name of the controller.

On the other hand the table shows me irrelevant information like "host" and "schema" which are always "ANY". It's a small project.

(Yes, I found out there is a --show-controllers flag. But I still think this should be the default.)

My suggestions

  • Color the method names of the HTTP verbs
  • Hide the hostname and schema columns if they're "ANY" everywhere
  • Always show the controller column

Example

I've got some "inspiration" from laravel and added method coloring to the output:

Image

Metadata

Metadata

Assignees

No one assigned

    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