Skip to content

Commit

Permalink
Merge pull request #8 from leevigraham/master
Browse files Browse the repository at this point in the history
Set the modified $defaults array as the bundle defaults
  • Loading branch information
Seldaek committed Jul 26, 2013
2 parents c3a3cb1 + 51403cb commit 1af1365
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 1af1365

Please sign in to comment.