mirror of
https://github.com/shlinkio/shlink.git
synced 2026-10-12 05:24:49 -05:00
Improved config loading so that autoloaded overrides module-specific
This commit is contained in:
1 parent
e28e984278
commit
aaf4f1dfe5
2 files changed
+3
-2
No files matched your search
@@ -1,2 +1,3 @@
|
||||
# url-shortener
|
||||
# Shlink
|
||||
|
||||
A PHP-based URL shortener application with analytics and management
|
||||
+1
-1
@@ -17,11 +17,11 @@ use Zend\Expressive\ConfigManager\ZendConfigProvider;
|
||||
|
||||
return call_user_func(function () {
|
||||
$configManager = new ConfigManager([
|
||||
new ZendConfigProvider('config/autoload/{{,*.}global,{,*.}local}.php'),
|
||||
Common\ConfigProvider::class,
|
||||
Core\ConfigProvider::class,
|
||||
CLI\ConfigProvider::class,
|
||||
Rest\ConfigProvider::class,
|
||||
new ZendConfigProvider('config/autoload/{{,*.}global,{,*.}local}.php'),
|
||||
], 'data/cache/app_config.php');
|
||||
|
||||
return $configManager->getMergedConfig();
|
||||
|
||||
Reference in new issue
Block a user