Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Improved output of debug route collection #59767

Open
@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