diff --git a/composer.json b/composer.json index f012cab4..da746f03 100644 --- a/composer.json +++ b/composer.json @@ -21,7 +21,7 @@ "zendframework/zend-paginator": "^2.6", "zendframework/zend-config": "^2.6", "zendframework/zend-i18n": "^2.7", - "mtymek/expressive-config-manager": "^0.4", + "zendframework/zend-config-aggregator": "^0.1", "acelaya/zsm-annotated-services": "^0.2.0", "acelaya/ze-content-based-error-handler": "^1.0", "doctrine/orm": "^2.5", @@ -37,13 +37,12 @@ "doctrine/migrations": "^1.4" }, "require-dev": { - "phpunit/phpunit": "^5.0", + "phpunit/phpunit": "^5.7 || ^6.0", "squizlabs/php_codesniffer": "^2.3", "roave/security-advisories": "dev-master", "filp/whoops": "^2.0", "symfony/var-dumper": "^3.0", - "vlucas/phpdotenv": "^2.2", - "phly/changelog-generator": "^2.1" + "vlucas/phpdotenv": "^2.2" }, "autoload": { "psr-4": { diff --git a/config/config.php b/config/config.php index 5eec4734..32644060 100644 --- a/config/config.php +++ b/config/config.php @@ -4,7 +4,7 @@ use Shlinkio\Shlink\CLI; use Shlinkio\Shlink\Common; use Shlinkio\Shlink\Core; use Shlinkio\Shlink\Rest; -use Zend\Expressive\ConfigManager; +use Zend\ConfigAggregator; /** * Configuration files are loaded in a specific order. First ``global.php``, then ``*.global.php``. @@ -15,11 +15,11 @@ use Zend\Expressive\ConfigManager; * Obviously, if you use closures in your config you can't cache it. */ -return (new ConfigManager\ConfigManager([ +return (new ConfigAggregator\ConfigAggregator([ ExpressiveErrorHandler\ConfigProvider::class, Common\ConfigProvider::class, Core\ConfigProvider::class, CLI\ConfigProvider::class, Rest\ConfigProvider::class, - new ConfigManager\ZendConfigProvider('config/{autoload/{{,*.}global,{,*.}local},params/generated_config}.php'), + new ConfigAggregator\ZendConfigProvider('config/{autoload/{{,*.}global,{,*.}local},params/generated_config}.php'), ], 'data/cache/app_config.php'))->getMergedConfig(); diff --git a/module/CLI/test/Command/Api/DisableKeyCommandTest.php b/module/CLI/test/Command/Api/DisableKeyCommandTest.php index 68d5f8c2..c265b3dd 100644 --- a/module/CLI/test/Command/Api/DisableKeyCommandTest.php +++ b/module/CLI/test/Command/Api/DisableKeyCommandTest.php @@ -1,7 +1,7 @@