Ver Fonte

[DoctrineMongoDBBundle] Fixed DoctrineMongoDBExtension::loadConnections to follow the new constructor signature introduced with the Doctrine\\MongoDB access layer refactoring so that Doctrine MongoDB logging works againg with the WebProfilerBundle

Henrik Bjørnskov há 14 anos atrás
pai
commit
c543626cf5

+ 2 - 1
src/Symfony/Bundle/DoctrineMongoDBBundle/DependencyInjection/DoctrineMongoDBExtension.php

@@ -296,7 +296,8 @@ class DoctrineMongoDBExtension extends Extension
         foreach ($connections as $name => $connection) {
             $odmConnArgs = array(
                 isset($connection['server']) ? $connection['server'] : null,
-                isset($connection['options']) ? $connection['options'] : array()
+                isset($connection['options']) ? $connection['options'] : array(),
+                new Reference(sprintf('doctrine.odm.mongodb.%s_configuration', $name))
             );
             $odmConnDef = new Definition('%doctrine.odm.mongodb.connection_class%', $odmConnArgs);
             $container->setDefinition(sprintf('doctrine.odm.mongodb.%s_connection', $name), $odmConnDef);