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

Skip to content

Commit e040afe

Browse files
committed
Fix detection of Xml/Yaml driver in DoctrineExtension
1 parent 2cd0493 commit e040afe

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,8 @@ 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')) {
224225
$mappingDriverDef->setArguments([array_flip($driverPaths)]);
225226
$mappingDriverDef->addMethodCall('setGlobalBasename', ['mapping']);
226227
}

0 commit comments

Comments
 (0)