]> Raphaël G. Git Repositories - packbundle/commitdiff
Add public path and url
authorRaphaël Gertz <git@rapsys.eu>
Tue, 7 Sep 2021 13:35:41 +0000 (15:35 +0200)
committerRaphaël Gertz <git@rapsys.eu>
Tue, 7 Sep 2021 13:35:41 +0000 (15:35 +0200)
DependencyInjection/RapsysPackExtension.php

index c73e90ce9fd544bd6a8f9b48585b44a7fa543290..e1f19966186294bbbce1ac153abb28814bffa567 100644 (file)
@@ -42,6 +42,12 @@ class RapsysPackExtension extends Extension {
 
                //Save configuration in parameters
                $container->setParameter(self::getAlias(), $config);
 
                //Save configuration in parameters
                $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']);
        }
 
        /**
        }
 
        /**