Skip to content

Add PHP config support for routing #60232

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 2 commits into from
Apr 27, 2025
Merged

Conversation

fabpot
Copy link
Member

@fabpot fabpot commented Apr 17, 2025

Q A
Branch? 7.3
Bug fix? no
New feature? yes
Deprecations? no
Issues n/a
License MIT

This is the first to stop using XML for the routing configuration provided by core bundles. We did the same for all other configuration files a while ago, so this is really the last step.

@stof
Copy link
Member

stof commented Apr 17, 2025

To avoid maintaining route definition twice, should we make our XML files import the PHP file ?

@ro0NL
Copy link
Contributor

ro0NL commented Apr 18, 2025

Can we trigger a runtime deprecation? :) (if xml imports php, maybe we can trace that)

@fabpot fabpot force-pushed the routing-php-config branch 2 times, most recently from c8b8b19 to 88d40c7 Compare April 27, 2025 08:12
@fabpot fabpot force-pushed the routing-php-config branch from 88d40c7 to 3225a15 Compare April 27, 2025 12:43
@fabpot fabpot force-pushed the routing-php-config branch from 3225a15 to 2a5aa45 Compare April 27, 2025 12:44
@fabpot
Copy link
Member Author

fabpot commented Apr 27, 2025

To avoid maintaining route definition twice, should we make our XML files import the PHP file ?

Done

@fabpot
Copy link
Member Author

fabpot commented Apr 27, 2025

Can we trigger a runtime deprecation? :) (if xml imports php, maybe we can trace that)

Done (hackish, tell me if there is something "better" as I want the deprecation to be local to the code)

@fabpot
Copy link
Member Author

fabpot commented Apr 27, 2025

Recipes updated in symfony/recipes#1407

@fabpot fabpot merged commit 90edbbe into symfony:7.3 Apr 27, 2025
9 of 11 checks passed
@fabpot fabpot deleted the routing-php-config branch April 27, 2025 18:48
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.

5 participants