X-Git-Url: https://git.rapsys.eu/packbundle/blobdiff_plain/ce4ef48d51a312fa5f854e91f3825a699d9325e8..9d0a8f506d7b005236a693838ffefc655df2e39f:/DependencyInjection/RapsysPackExtension.php?ds=sidebyside diff --git a/DependencyInjection/RapsysPackExtension.php b/DependencyInjection/RapsysPackExtension.php index 94b9fad..e1f1996 100644 --- a/DependencyInjection/RapsysPackExtension.php +++ b/DependencyInjection/RapsysPackExtension.php @@ -37,11 +37,17 @@ 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.public.path key + $container->setParameter(self::getAlias().'.public.path', $config['public']['path']); + + //Set rapsys_pack.public.url key + $container->setParameter(self::getAlias().'.public.url', $config['public']['url']); } /**