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

      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