Skip to content

Commit

Permalink
Replace anonymous function with ArrayProvider
Browse files Browse the repository at this point in the history
Signed-off-by: matt <[email protected]>
  • Loading branch information
matt committed Mar 13, 2023
1 parent 4ce7bee commit 12a0827
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions config/development.config.php.dist
Original file line number Diff line number Diff line change
Expand Up @@ -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();

0 comments on commit 12a0827

Please sign in to comment.