mirror of
https://github.com/shlinkio/shlink.git
synced 2024-11-26 23:18:37 +03:00
Improved config loading so that autoloaded overrides module-specific
This commit is contained in:
parent
e28e984278
commit
aaf4f1dfe5
2 changed files with 3 additions and 2 deletions
|
@ -1,2 +1,3 @@
|
|||
# url-shortener
|
||||
# Shlink
|
||||
|
||||
A PHP-based URL shortener application with analytics and management
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue