Skip to content

Commit

Permalink
Set the modified $defaults array as the bundle defaults, not just the…
Browse files Browse the repository at this point in the history
… merged defaults
  • Loading branch information
leevigraham committed Jul 26, 2013
1 parent c3a3cb1 commit 51403cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DependencyInjection/NelmioCorsExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
Expand Down

0 comments on commit 51403cb

Please sign in to comment.