Skip to content

Commit fc84369

Browse files
author
matt
committed
Replace anonymous function with ArrayProvider
1 parent 4ce7bee commit fc84369

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

config/development.config.php.dist

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,16 @@
2525

2626
declare(strict_types=1);
2727

28+
use Laminas\ConfigAggregator\ArrayProvider;
2829
use Laminas\ConfigAggregator\ConfigAggregator;
2930
use Laminas\ConfigAggregator\PhpFileProvider;
3031

3132
$aggregator = new ConfigAggregator([
3233
new PhpFileProvider(realpath(__DIR__) . '/autoload/{,*.}{global,local}-development.php'),
33-
function() {
34-
return [
35-
'debug' => true,
36-
ConfigAggregator::ENABLE_CACHE => false,
37-
];
38-
},
34+
new ArrayProvider([
35+
'debug' => true,
36+
ConfigAggregator::ENABLE_CACHE => false,
37+
]),
3938
]);
4039

4140
return $aggregator->getMergedConfig();

0 commit comments

Comments
 (0)