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'));