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

Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
[DoctrineBridge]  Fix detection of Xml/Yaml driver in DoctrineExtension
  • Loading branch information
GromNaN authored and nicolas-grekas committed Jan 30, 2024
commit 662b8f239e5ccdd1fba3cf9d7a289b70239bb85a
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,9 @@ protected function registerMappingDrivers(array $objectManager, ContainerBuilder
array_values($driverPaths),
]);
}
if (str_contains($mappingDriverDef->getClass(), 'yml') || str_contains($mappingDriverDef->getClass(), 'xml')) {
if (str_contains($mappingDriverDef->getClass(), 'yml') || str_contains($mappingDriverDef->getClass(), 'xml')
|| str_contains($mappingDriverDef->getClass(), 'Yaml') || str_contains($mappingDriverDef->getClass(), 'Xml')
) {
$mappingDriverDef->setArguments([array_flip($driverPaths)]);
$mappingDriverDef->addMethodCall('setGlobalBasename', ['mapping']);
}
Expand Down