瀏覽代碼

[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 14 年之前
父節點
當前提交
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);