Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit faed230

Browse files
committedMar 18, 2025
minor #20765 [Routing] Add new tip to explain usage of --method option for filtering routes (santysisi)
This PR was merged into the 7.3 branch. Discussion ---------- [Routing] Add new tip to explain usage of --method option for filtering routes This PR updates the documentation for the debug:router command to include the new --method option, which allows developers to filter routes by HTTP method (such as GET, POST, PUT, DELETE, etc.). This enhances the debug:router command, making it easier to focus on specific routes based on their HTTP method, especially in large applications. For more context, refer to the original issue: [Symfony Issue #59906](symfony/symfony#59906). Commits ------- b04bc3a Add new tip to explain usage of --method option for filtering routes
2 parents a558c4c + b04bc3a commit faed230

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

‎routing.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -456,6 +456,10 @@ route details:
456456
Use the ``--show-aliases`` option to show all available aliases for a given
457457
route.
458458

459+
.. tip::
460+
461+
Use the ``--method`` option to filter routes by HTTP method. For example, to only show routes that use the ``GET`` method, add ``--method=GET``
462+
459463
The other command is called ``router:match`` and it shows which route will match
460464
the given URL. It's useful to find out why some URL is not executing the
461465
controller action that you expect:

0 commit comments

Comments
 (0)
Please sign in to comment.