Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Added ArrayProvider #2

Merged

Conversation

weierophinney
Copy link
Member

ArrayProvider allows users to define short, targeted configuration arrays within the file that defines the ConfigAggregator instance; a specific use case is for configuration cache-related settings.

As an example:

$configCache = ['config_cache_path' => 'data/cache/config.php'];

new ConfigAggregator([
   new ArrayProvider($configCache),
   /* ... */
], $configCache['config_cache_path'])

Resolves #1.

ArrayProvider allows users to define short, targeted configuration
arrays within the file that defines the `ConfigAggregator` instance; a
specific use case is for configuration cache-related settings.

As an example:

```php
$configCache = ['config_cache_path' => 'data/cache/config.php'];

new ConfigAggregator([
    new ArrayProvider($configCache),
    /* ... */
], $configCache['config_cache_path'])
```
@weierophinney
Copy link
Member Author

Ping @MichaelGooden and @xtreamwayz.

Copy link

@MichaelGooden MichaelGooden left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@weierophinney weierophinney merged commit 4bc732c into zendframework:master Jan 11, 2017
weierophinney added a commit that referenced this pull request Jan 11, 2017
weierophinney added a commit that referenced this pull request Jan 11, 2017
@weierophinney weierophinney deleted the feature/allow-arrays branch January 11, 2017 14:10
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants