Skip to content
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

[Routing] Fix documentation on router method option usage #20803

Merged
merged 1 commit into from
Mar 24, 2025

Conversation

santysisi
Copy link
Contributor

@santysisi santysisi commented Mar 23, 2025

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.

@carsonbot carsonbot added this to the 7.3 milestone Mar 23, 2025
@carsonbot carsonbot changed the title Fix documentation on router method option usage [Routing] Fix documentation on router method option usage Mar 24, 2025
@javiereguiluz
Copy link
Member

Santiago, thanks for fixing this ... and I'm sorry for adding this wrong doc.

@javiereguiluz javiereguiluz merged commit 26e69bd into symfony:7.3 Mar 24, 2025
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants