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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy