Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e1da961

Browse filesBrowse files
bug #58772 [DoctrineBridge] Backport detection fix of Xml/Yaml driver in DoctrineExtension (MatTheCat)
This PR was merged into the 5.4 branch. Discussion ---------- [DoctrineBridge] Backport detection fix of Xml/Yaml driver in DoctrineExtension | Q | A | ------------- | --- | Branch? | 5.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Issues | Fix doctrine/DoctrineBundle#1832 | License | MIT #53681 got merged on 6.4, but the DoctrinBundle still needs it on 5.4 😅 Commits ------- f7b61a2 [DoctrineBridge] Backport #53681
2 parents eb79fc2 + f7b61a2 commit e1da961
Copy full SHA for e1da961

File tree

Expand file treeCollapse file tree

1 file changed

+3
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-1
lines changed

‎src/Symfony/Bridge/Doctrine/DependencyInjection/AbstractDoctrineExtension.php

Copy file name to clipboardExpand all lines: src/Symfony/Bridge/Doctrine/DependencyInjection/AbstractDoctrineExtension.php
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,9 @@ protected function registerMappingDrivers(array $objectManager, ContainerBuilder
220220
]);
221221
}
222222
$mappingDriverDef->setPublic(false);
223-
if (str_contains($mappingDriverDef->getClass(), 'yml') || str_contains($mappingDriverDef->getClass(), 'xml')) {
223+
if (str_contains($mappingDriverDef->getClass(), 'yml') || str_contains($mappingDriverDef->getClass(), 'xml')
224+
|| str_contains($mappingDriverDef->getClass(), 'Yaml') || str_contains($mappingDriverDef->getClass(), 'Xml')
225+
) {
224226
$mappingDriverDef->setArguments([array_flip($driverPaths)]);
225227
$mappingDriverDef->addMethodCall('setGlobalBasename', ['mapping']);
226228
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.