Skip to content

[Routing] Fix configuring a single route's hosts #59446

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

Merged
merged 1 commit into from
Jan 9, 2025

Conversation

MatTheCat
Copy link
Contributor

Q A
Branch? 6.4
Bug fix? yes
New feature? no
Deprecations? no
Issues Fix #58086
License MIT

All loaders were affected by this issue: when you configure a route it is immediately added to the main collection and in the one returned by the LocalizedRouteTrait. Problem is: only the latter is updated when configuring hosts, which means they will be ignored.

This PR merges these two collections, with a twist: after its hosts are configured, a route may have to be removed from the main collection (like static becoming static.nl and static.en in the tests).

@nicolas-grekas nicolas-grekas changed the title [Routing] Fix configuring a single route’ hosts [Routing] Fix configuring a single route's hosts Jan 9, 2025
@nicolas-grekas
Copy link
Member

Thank you @MatTheCat.

@nicolas-grekas nicolas-grekas merged commit a6ead57 into symfony:6.4 Jan 9, 2025
11 checks passed
@MatTheCat MatTheCat deleted the ticket_58086 branch January 9, 2025 15:32
This was referenced Jan 29, 2025
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