Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix bug in KeyValueStore registration

  • Loading branch information...
commit 825d7efa461a6d682be2506a9d6368a280915411 1 parent b414386
@beberlei authored
Showing with 7 additions and 2 deletions.
  1. +7 −2 DependencyInjection/WindowsAzureDistributionExtension.php
View
9 DependencyInjection/WindowsAzureDistributionExtension.php
@@ -85,11 +85,16 @@ protected function loadTable($config, $container)
));
$container->setDefinition('windows_azure_distribution.table.storage', $storage);
+ $configDef = new Definition('Doctrine\KeyValueStore\Configuration');
+ $configDef->addMethodCall('setMetadataCache', array(new Reference('windows_azure_distribution.table.cache')));
+ $configDef->addMethodCall('setMappingDriverImpl', array(new Reference('windows_azure_distribution.table.driver')));
+
+ $container->setDefinition('windows_azure_distribution.table.config', $configDef);
+
$em = new Definition('Doctrine\KeyValueStore\EntityManager');
$em->setArguments(array(
new Reference('windows_azure_distribution.table.storage'),
- new Reference('windows_azure_distribution.table.cache'),
- new Reference('windows_azure_distribution.table.driver'),
+ new Reference('windows_azure_distribution.table.config'),
));
$container->setDefinition('windows_azure_distribution.table.manager', $em);
Please sign in to comment.
Something went wrong with that request. Please try again.