Skip to content

Commit 26e69bd

Browse files
committed
minor #20803 Fix documentation on router method option usage (santysisi)
This PR was merged into the 7.3 branch. Discussion ---------- Fix documentation on router method option usage This update corrects the documentation to reflect the current behavior of the `--method` option in the router. The previous lines suggesting multiple `--method` options for displaying routes matching all given methods were incorrect. The system now only considers the last method passed. This fix removes the lines that caused confusion, clarifying that only the last method, such as PATCH, will be considered Additionally, if it's considered a good idea, I can implement a new feature to allow multiple methods to be passed and match routes accordingly, enabling more flexibility in route debugging. Commits ------- 0bf6bc3 Fix documentation on router method option usage
2 parents b583a60 + 0bf6bc3 commit 26e69bd

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

routing.rst

-3
Original file line numberDiff line numberDiff line change
@@ -442,9 +442,6 @@ evaluates them:
442442
$ php bin/console debug:router --method=GET
443443
$ php bin/console debug:router --method=ANY
444444
445-
# pass the option more than once to display the routes that match all the given methods
446-
$ php bin/console debug:router --method=GET --method=PATCH
447-
448445
.. versionadded:: 7.3
449446

450447
The ``--method`` option was introduced in Symfony 7.3.

0 commit comments

Comments
 (0)