Commit cb0817c
committed
bug #53681 [DoctrineBridge] Fix detection of Xml/Yaml driver in DoctrineExtension (GromNaN)
This PR was squashed before being merged into the 6.4 branch.
Discussion
----------
[DoctrineBridge] Fix detection of Xml/Yaml driver in DoctrineExtension
| Q | A
| ------------- | ---
| Branch? | 6.4
| Bug fix? | yes
| New feature? | no
| Deprecations? | no
| Issues | Fix doctrine/DoctrineMongoDBBundle#841
| License | MIT
In DoctrineMongoDBBundle v5, we removed `.class` attributes to plain class names in service definitions (see doctrine/DoctrineMongoDBBundle#821). The class for `doctrine_mongodb.odm.default_xml_metadata_driver` changed from `doctrine_mongodb.odm.metadata.xml.class` to `Doctrine\Bundle\MongoDBBundle\Mapping\Driver\XmlDriver`.
I fixed the detection of the driver by checking the uppercase `Xml` and `Yaml` because it might be necessary if the same change is made to DoctrineBundle.
[`doctrine/mongodb-odm-bundle` requires `symfony/doctrine-bridge: "^6.4 || ^7.0"`](https://github.com/doctrine/DoctrineMongoDBBundle/blob/4d8d32b726e7af21a562a2b6a227f0496c7d39d5/composer.json#L36) so this patch if not required for older versions of Symfony even if it could be applied.
Commits
-------
662b8f2 [DoctrineBridge] Fix detection of Xml/Yaml driver in DoctrineExtensionFile tree
1 file changed
+3
-1
lines changed- src/Symfony/Bridge/Doctrine/DependencyInjection
1 file changed
+3
-1
lines changedLines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
215 | 215 | | |
216 | 216 | | |
217 | 217 | | |
218 | | - | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
219 | 221 | | |
220 | 222 | | |
221 | 223 | | |
| |||
0 commit comments