From 5d2dbde4cce176a03f6130ad42cc59318d12b19f Mon Sep 17 00:00:00 2001 From: matt Date: Mon, 13 Mar 2023 13:41:45 +0000 Subject: [PATCH] Replace anonymous function with ArrayProvider Signed-off-by: matt --- config/development.config.php.dist | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/config/development.config.php.dist b/config/development.config.php.dist index 82657be..e6a4249 100644 --- a/config/development.config.php.dist +++ b/config/development.config.php.dist @@ -25,17 +25,16 @@ declare(strict_types=1); +use Laminas\ConfigAggregator\ArrayProvider; use Laminas\ConfigAggregator\ConfigAggregator; use Laminas\ConfigAggregator\PhpFileProvider; $aggregator = new ConfigAggregator([ new PhpFileProvider(realpath(__DIR__) . '/autoload/{,*.}{global,local}-development.php'), - function() { - return [ - 'debug' => true, - ConfigAggregator::ENABLE_CACHE => false, - ]; - }, + new ArrayProvider([ + 'debug' => true, + ConfigAggregator::ENABLE_CACHE => false, + ]), ]); return $aggregator->getMergedConfig();