Skip to content

[RFC] Deprecate and remove support for semantic XML configuration #60200

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

Open
lyrixx opened this issue Apr 11, 2025 · 7 comments
Open

[RFC] Deprecate and remove support for semantic XML configuration #60200

lyrixx opened this issue Apr 11, 2025 · 7 comments
Labels
RFC RFC = Request For Comments (proposals about features that you want to be discussed)

Comments

@lyrixx
Copy link
Member

lyrixx commented Apr 11, 2025

Description

Maintaining https://github.com/symfony/symfony/blob/7.3/src/Symfony/Bundle/FrameworkBundle/Resources/config/schema/symfony-1.0.xsd is not easy.
And I never saw a project using XML to configure the framework.

So I propose to remove this support. I know it's always heartbreaking to remove a feature, but I really think it's much better for Symfony maintainers.

More over, we now have much better format to configure the framework...

Example

No response

@carsonbot carsonbot added the RFC RFC = Request For Comments (proposals about features that you want to be discussed) label Apr 11, 2025
@lyrixx
Copy link
Member Author

lyrixx commented Apr 11, 2025

maybe it can be generated from the Configuration definition?

What do you mean by "it"?

deprecating format X can be really painful for (some) users, im not sure it's generally worth it, since it's just format X

I agree but I really didn't see any project using it. More over, this configuration formation is painful to use (event for end user)

And Doctrine has already removed a configuration format. So there is a precedent 😃

@GromNaN
Copy link
Member

GromNaN commented Apr 11, 2025

maybe it can be generated from the Configuration definition?

This is not trivial as there is some transformations of the input before validating the configuration (example in DoctrineBundle) that requires a specific schema file. We hit this issue while trying to generate the JSON schema configuration in #59620

And I never saw a project using XML to configure the framework.

We can decide to deprecate this format and possibly reconsider this decision before deleting it, if people contest with specific use cases.

@lyrixx
Copy link
Member Author

lyrixx commented Apr 18, 2025

maybe do some public polls first?

I'd like to, but I don't know where we could put it to reach the maximum number of people.

@wkania
Copy link
Contributor

wkania commented May 3, 2025

I'd like to, but I don't know where we could put it to reach the maximum number of people.

During https://live.symfony.com/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RFC RFC = Request For Comments (proposals about features that you want to be discussed)
Projects
None yet
Development

No branches or pull requests

4 participants