Skip to content

Improved output of debug route collection #59767

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
mamazu opened this issue Feb 13, 2025 · 0 comments · May be fixed by #59780
Open

Improved output of debug route collection #59767

mamazu opened this issue Feb 13, 2025 · 0 comments · May be fixed by #59780

Comments

@mamazu
Copy link
Contributor

mamazu commented Feb 13, 2025

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants