//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']);
}
/**