Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e1da961

Browse 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

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines 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)