From 9c9a44bb06337dadeb9db1a8b202f15cca804353 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Tamarelle?= Date: Tue, 30 Jan 2024 11:23:17 +0100 Subject: [PATCH] =?UTF-8?q?[DoctrineBridge]=20=C2=A0Fix=20detection=20of?= =?UTF-8?q?=20Xml/Yaml=20driver=20in=20DoctrineExtension?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- DependencyInjection/AbstractDoctrineExtension.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/DependencyInjection/AbstractDoctrineExtension.php b/DependencyInjection/AbstractDoctrineExtension.php index 631e6d01..0cfc2570 100644 --- a/DependencyInjection/AbstractDoctrineExtension.php +++ b/DependencyInjection/AbstractDoctrineExtension.php @@ -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']); }