Skip to content

Conversation

@OskarStark
Copy link
Contributor

@OskarStark OskarStark commented Jun 30, 2025

Q A
Branch? 7.4
Bug fix? yes
New feature? no
Deprecations? no
Issues Follows #60929
License MIT

Add fixXmlConfig() calls for 'issuers' and 'algorithms' arrays to allow using singular XML tags that get automatically converted to plural form. This improves XML configuration ergonomics.

@xabbuh
Copy link
Member

xabbuh commented Jul 1, 2025

Isn't this relevant for older Symfony releases as well?

@OskarStark
Copy link
Contributor Author

I would say yes for the issuer and one of the algorithms

…ler arrays

Add fixXmlConfig() calls for 'issuers' and 'algorithms' arrays to allow
using singular XML tags that get automatically converted to plural form.
This improves XML configuration ergonomics.

As requested in PR symfony#60929
@fabpot
Copy link
Member

fabpot commented Aug 23, 2025

It seems like the calls are still in the wrong place.

@OskarStark
Copy link
Contributor Author

Yes they are, will try to find time soon

The fixXmlConfig() calls should be placed at the parent node level (oidc)
rather than on individual child array nodes (issuers, algorithms) to properly
handle XML configuration transformations.
@OskarStark OskarStark changed the title [SecurityBundle] Add missing fixXmlConfig() calls for OIDC token handler arrays [SecurityBundle] Add missing fixXmlConfig() calls Aug 24, 2025
@OskarStark OskarStark modified the milestones: 8.0, 7.4 Aug 24, 2025
@OskarStark OskarStark requested review from fabpot and stof August 24, 2025 10:48
->arrayNode($this->getKey())
->fixXmlConfig($this->getKey())
->fixXmlConfig('issuer')
->fixXmlConfig('algorithm')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one can only work in 8.0 as it already exists in 7.4 (not even sure that this is a good idea as the semantic is not going to be the same between the 2 versions).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

$node
->arrayNode($this->getKey())
->fixXmlConfig($this->getKey())
->fixXmlConfig('issuer')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one is for 7.3.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

@fabpot fabpot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@OskarStark Can you have a look at my comments and maybe split this PR depending on which version we target?

@OskarStark
Copy link
Contributor Author

@OskarStark OskarStark closed this Sep 9, 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.

5 participants