]> Raphaƫl G. Git Repositories - packbundle/blobdiff - DependencyInjection/RapsysPackExtension.php
Generic configuration
[packbundle] / DependencyInjection / RapsysPackExtension.php
index 94b9fadf9cf4b180655fb88f2a12e23d7272f75f..2bc7f67209d914171413ae505c3ad9b75057f543 100644 (file)
@@ -37,11 +37,14 @@ class RapsysPackExtension extends Extension {
                //Detect when no user configuration is provided
                if ($configs === [[]]) {
                        //Prepend default config
-                       $container->prependExtensionConfig($this->getAlias(), $config);
+                       $container->prependExtensionConfig(self::getAlias(), $config);
                }
 
                //Save configuration in parameters
-               $container->setParameter($this->getAlias(), $config);
+               $container->setParameter(self::getAlias(), $config);
+
+               //Set rapsys_pack.path key
+               $container->setParameter(self::getAlias().'.path', $config['path']);
        }
 
        /**