8000 [FrameworkBundle] Add new InputOption 'method' to debug:router command · Issue #59906 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content
[FrameworkBundle] Add new InputOption 'method' to debug:router command #59906
Closed
@santysisi

Description

@santysisi

Description

It might be useful to add a new InputOption named "method" to the debug:router command. This option would allow developers to filter the displayed routes by HTTP method (GET, POST, PUT, DELETE, etc.) when running the command. This would make debugging routes a bit easier and more efficient, especially when working with large applications. Additionally, it would bring the debug:router command in line with the router:match command, which already has a similar option for filtering by method.

If this feature aligns with the goals of Symfony, I would be happy to open a PR for the 7.3 branch.

Example

Before adding the new InputOption:
php bin/console debug:router

Image

After adding the new InputOption:
php bin/console debug:router --method=GET

Image

Before adding the new InputOption with the name argument
php bin/console debug:router app_foo

Image

After adding the method InputOption with the name argument:
php bin/console debug:router app_foo --method=DELETE

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

      0