mirror of
https://github.com/shlinkio/shlink.git
synced 2025-02-25 18:45:27 -06:00
Improved main config file and fixed tests whitelist
This commit is contained in:
parent
aaf4f1dfe5
commit
31af0eea04
@ -15,14 +15,10 @@ use Zend\Expressive\ConfigManager\ZendConfigProvider;
|
|||||||
* Obviously, if you use closures in your config you can't cache it.
|
* Obviously, if you use closures in your config you can't cache it.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
return call_user_func(function () {
|
return (new ConfigManager([
|
||||||
$configManager = new ConfigManager([
|
Common\ConfigProvider::class,
|
||||||
Common\ConfigProvider::class,
|
Core\ConfigProvider::class,
|
||||||
Core\ConfigProvider::class,
|
CLI\ConfigProvider::class,
|
||||||
CLI\ConfigProvider::class,
|
Rest\ConfigProvider::class,
|
||||||
Rest\ConfigProvider::class,
|
new ZendConfigProvider('config/autoload/{{,*.}global,{,*.}local}.php'),
|
||||||
new ZendConfigProvider('config/autoload/{{,*.}global,{,*.}local}.php'),
|
], 'data/cache/app_config.php'))->getMergedConfig();
|
||||||
], 'data/cache/app_config.php');
|
|
||||||
|
|
||||||
return $configManager->getMergedConfig();
|
|
||||||
});
|
|
||||||
|
@ -16,7 +16,10 @@
|
|||||||
|
|
||||||
<filter>
|
<filter>
|
||||||
<whitelist processUncoveredFilesFromWhitelist="true">
|
<whitelist processUncoveredFilesFromWhitelist="true">
|
||||||
<directory suffix=".php">src</directory>
|
<directory suffix=".php">./module/Common/src</directory>
|
||||||
|
<directory suffix=".php">./module/Core/src</directory>
|
||||||
|
<directory suffix=".php">./module/Rest/src</directory>
|
||||||
|
<directory suffix=".php">./module/CLI/src</directory>
|
||||||
</whitelist>
|
</whitelist>
|
||||||
</filter>
|
</filter>
|
||||||
</phpunit>
|
</phpunit>
|
||||||
|
Loading…
Reference in New Issue
Block a user