diff --git a/DependencyInjection/AbstractDoctrineExtension.php b/DependencyInjection/AbstractDoctrineExtension.php index 69443597..94b99d8d 100644 --- a/DependencyInjection/AbstractDoctrineExtension.php +++ b/DependencyInjection/AbstractDoctrineExtension.php @@ -193,7 +193,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']); }