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 c888bcd

Browse filesBrowse files
kriswallsmithfabpot
authored andcommitted
[DoctrineMongoDBBundle] Moved loading of default configuration inside conditional so it's only loaded once.
1 parent 2a051b5 commit c888bcd
Copy full SHA for c888bcd

File tree

Expand file treeCollapse file tree

1 file changed

+2
-3
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-3
lines changed

‎src/Symfony/Bundle/DoctrineMongoDBBundle/DependencyInjection/MongoDBExtension.php

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/DoctrineMongoDBBundle/DependencyInjection/MongoDBExtension.php
+2-3Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,9 @@ public function __construct(array $bundles)
3838
*/
3939
public function mongodbLoad($config, ContainerBuilder $container)
4040
{
41-
$loader = new XmlFileLoader($container, __DIR__.'/../Resources/config');
42-
$loader->load($this->resources['mongodb']);
43-
4441
if (!$container->hasDefinition('doctrine.odm.mongodb.document_manager')) {
42+
$loader = new XmlFileLoader($container, __DIR__.'/../Resources/config');
43+
$loader->load($this->resources['mongodb']);
4544

4645
$container->setParameter('doctrine.odm.mongodb.mapping_dirs', $this->findBundleSubpaths('Resources/config/doctrine/metadata', $container));
4746
$container->setParameter('doctrine.odm.mongodb.document_dirs', $this->findBundleSubpaths('Document', $container));

0 commit comments

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