]> Raphaƫl G. Git Repositories - packbundle/blobdiff - DependencyInjection/RapsysPackExtension.php
Fix default configuration tree
[packbundle] / DependencyInjection / RapsysPackExtension.php
index 97bb11f3b23c0200688e169dda382edc6cfa7a0f..5397036876f65a11a5ab899c58aea423977d2d6b 100644 (file)
@@ -24,6 +24,11 @@ class RapsysPackExtension extends Extension {
                //Load configuration
                $configuration = $this->getConfiguration($configs, $container);
                $config = $this->processConfiguration($configuration, $configs);
                //Load configuration
                $configuration = $this->getConfiguration($configs, $container);
                $config = $this->processConfiguration($configuration, $configs);
+
+               //Set default config in parameter
+               if (!$container->hasParameter($alias = $this->getAlias())) {
+                       $container->setParameter($alias, $config[$alias]);
+               }
        }
 
        /**
        }
 
        /**