- //Set default config in parameter
- if (!$container->hasParameter($alias = $this->getAlias())) {
- $container->setParameter($alias, $config[$alias]);
- } else {
- $config[$alias] = $container->getParameter($alias);
+ //Detect when no user configuration is provided
+ if ($configs === [[]]) {
+ //Prepend default config
+ $container->prependExtensionConfig($this->getAlias(), $config);