This repository has been archived by the owner on Jan 29, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
75 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
test/Injector/TestAsset/expressive-application-from-skeleton.config.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<?php | ||
|
||
use Zend\ConfigAggregator\ArrayProvider; | ||
use Zend\ConfigAggregator\ConfigAggregator; | ||
use Zend\ConfigAggregator\PhpFileProvider; | ||
|
||
// To enable or disable caching, set the `ConfigAggregator::ENABLE_CACHE` boolean in | ||
// `config/autoload/local.php`. | ||
$cacheConfig = [ | ||
'config_cache_path' => 'data/config-cache.php', | ||
]; | ||
|
||
$aggregator = new ConfigAggregator([ | ||
\Zend\Validator\ConfigProvider::class, | ||
\Zend\InputFilter\ConfigProvider::class, | ||
\Zend\Filter\ConfigProvider::class, | ||
\Zend\Mail\ConfigProvider::class, | ||
\Contact\ConfigProvider::class, | ||
// Include cache configuration | ||
new ArrayProvider($cacheConfig), | ||
|
||
// Default App module config | ||
App\ConfigProvider::class, | ||
|
||
// Load application config in a pre-defined order in such a way that local settings | ||
// overwrite global settings. (Loaded as first to last): | ||
// - `global.php` | ||
// - `*.global.php` | ||
// - `local.php` | ||
// - `*.local.php` | ||
new PhpFileProvider('config/autoload/{{,*.}global,{,*.}local}.php'), | ||
|
||
// Load development config if it exists | ||
new PhpFileProvider('config/development.config.php'), | ||
], $cacheConfig['config_cache_path']); | ||
|
||
return $aggregator->getMergedConfig(); |