Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 662b8f2

Browse filesBrowse files
GromNaNnicolas-grekas
authored andcommitted
[DoctrineBridge]  Fix detection of Xml/Yaml driver in DoctrineExtension
1 parent cb68bf3 commit 662b8f2
Copy full SHA for 662b8f2

File tree

1 file changed

+3
-1
lines changed
Filter options

1 file changed

+3
-1
lines changed

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

Copy file name to clipboardExpand all lines: src/Symfony/Bridge/Doctrine/DependencyInjection/AbstractDoctrineExtension.php
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,9 @@ protected function registerMappingDrivers(array $objectManager, ContainerBuilder
215215
array_values($driverPaths),
216216
]);
217217
}
218-
if (str_contains($mappingDriverDef->getClass(), 'yml') || str_contains($mappingDriverDef->getClass(), 'xml')) {
218+
if (str_contains($mappingDriverDef->getClass(), 'yml') || str_contains($mappingDriverDef->getClass(), 'xml')
219+
|| str_contains($mappingDriverDef->getClass(), 'Yaml') || str_contains($mappingDriverDef->getClass(), 'Xml')
220+
) {
219221
$mappingDriverDef->setArguments([array_flip($driverPaths)]);
220222
$mappingDriverDef->addMethodCall('setGlobalBasename', ['mapping']);
221223
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.