From 31af0eea04c603e3344e1971e4fd8411cfa82da7 Mon Sep 17 00:00:00 2001 From: Alejandro Celaya Date: Tue, 19 Jul 2016 23:35:47 +0200 Subject: [PATCH] Improved main config file and fixed tests whitelist --- config/config.php | 18 +++++++----------- phpunit.xml.dist | 5 ++++- 2 files changed, 11 insertions(+), 12 deletions(-) diff --git a/config/config.php b/config/config.php index 812d7653..f5010bd0 100644 --- a/config/config.php +++ b/config/config.php @@ -15,14 +15,10 @@ use Zend\Expressive\ConfigManager\ZendConfigProvider; * Obviously, if you use closures in your config you can't cache it. */ -return call_user_func(function () { - $configManager = new ConfigManager([ - 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(); -}); +return (new ConfigManager([ + Common\ConfigProvider::class, + Core\ConfigProvider::class, + CLI\ConfigProvider::class, + Rest\ConfigProvider::class, + new ZendConfigProvider('config/autoload/{{,*.}global,{,*.}local}.php'), +], 'data/cache/app_config.php'))->getMergedConfig(); diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 65d36865..06e1e939 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -16,7 +16,10 @@ - src + ./module/Common/src + ./module/Core/src + ./module/Rest/src + ./module/CLI/src