Skip to content

[FrameworkBundle] add missing default-doctrine-dbal-provider cache pool attribute to XSD #51301

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
Aug 8, 2023

Conversation

xabbuh
Copy link
Member

@xabbuh xabbuh commented Aug 7, 2023

Q A
Branch? 5.4
Bug fix? yes
New feature? no
Deprecations? no
Tickets
License MIT
Doc PR

@@ -290,6 +290,7 @@
<xsd:element name="default-psr6-provider" type="xsd:string" minOccurs="0" maxOccurs="1" />
<xsd:element name="default-redis-provider" type="xsd:string" minOccurs="0" maxOccurs="1" />
<xsd:element name="default-memcached-provider" type="xsd:string" minOccurs="0" maxOccurs="1" />
<xsd:element name="default-doctrine-dbal-provider" type="xsd:string" minOccurs="0" maxOccurs="1" />
Copy link
Member

Choose a reason for hiding this comment

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

this should be an attribute, not an element, to match our XML conventions. The other xsd:string elements that cannot occur multiple times should have been attributes too, and we already added them as attributes when documenting the XML config and finding this out. So I suggest that new settings are added only as attribute to avoid continuing the non-conventional format.

And what is the difference between default-doctrine-dbal-provider and default-doctrine-provider ?

Copy link
Member

Choose a reason for hiding this comment

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

I favor consistency on this one.

And what is the difference between default-doctrine-dbal-provider and default-doctrine-provider ?

default-doctrine-provider should have been named default-doctrine-cache-provider, it's using an adapter to doctrine/cache

@nicolas-grekas
Copy link
Member

Thank you @xabbuh.

@nicolas-grekas nicolas-grekas merged commit 2c8e5fd into symfony:5.4 Aug 8, 2023
@xabbuh xabbuh deleted the default-dbal-provider-xsd branch August 8, 2023 11:19
nicolas-grekas added a commit that referenced this pull request Aug 8, 2023
…to XML attribute (xabbuh)

This PR was merged into the 5.4 branch.

Discussion
----------

[FrameworkBundle] change default doctrine DBAL provider to XML attribute

| Q             | A
| ------------- | ---
| Branch?       | 5.4
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Tickets       | Fix #51301 (comment)
| License       | MIT
| Doc PR        |

Commits
-------

e8a2e86 change default doctrine DBAL provider to XML attribute
This was referenced Aug 26, 2023
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.

4 participants