From 51403cbe34aafb41577753d1a9a80b3168f0b6bd Mon Sep 17 00:00:00 2001 From: Leevi Graham Date: Sat, 27 Jul 2013 00:24:33 +1000 Subject: [PATCH] Set the modified $defaults array as the bundle defaults, not just the merged defaults --- DependencyInjection/NelmioCorsExtension.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DependencyInjection/NelmioCorsExtension.php b/DependencyInjection/NelmioCorsExtension.php index 287096f..1992acc 100644 --- a/DependencyInjection/NelmioCorsExtension.php +++ b/DependencyInjection/NelmioCorsExtension.php @@ -58,7 +58,7 @@ public function load(array $configs, ContainerBuilder $container) $config['paths'][$path] = $opts; } - $container->setParameter('nelmio_cors.defaults', $config['defaults']); + $container->setParameter('nelmio_cors.defaults', $defaults); $container->setParameter('nelmio_cors.map', $config['paths']); $loader = new Loader\XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));