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

Commit

Permalink
docs: file mode available only as config option
Browse files Browse the repository at this point in the history
Not as a third option to the constructor, as previously reported.

Updates the one example in the docs, which also demonstrated the config
value, and the mention in the CHANGELOG.
  • Loading branch information
weierophinney committed Dec 27, 2019
1 parent 9b2074c commit 77fc1c5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ All notable changes to this project will be documented in this file, in reverse

### Added

- [#23](https://github.com/zendframework/zend-config-aggregator/pull/23) adds the ability to specify the file mode for the generated cache file, when generating a cache file. The mode can be provided as the third option to the `ConfigAggregator` constructor, or via the `Zend\ConfigAggregator\ConfigAggregator::CACHE_FILEMODE` configuration option. Modes should be expressed as octal values (e.g., `0640`).
- [#23](https://github.com/zendframework/zend-config-aggregator/pull/23) adds the ability to specify the file mode for the generated cache file, when generating a cache file. The mode can be provided via the `Zend\ConfigAggregator\ConfigAggregator::CACHE_FILEMODE` configuration option. Modes should be expressed as octal values (e.g., `0600`).

### Changed

Expand Down
5 changes: 2 additions & 3 deletions docs/book/caching.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,11 @@ $aggregator = new ConfigAggregator(
[
new ArrayProvider([
ConfigAggregator::ENABLE_CACHE => true,
ConfigAggregator::CACHE_FILEMODE => 0600
ConfigAggregator::CACHE_FILEMODE => 0600 // only owner can read and write
]),
new PhpFileProvider('*.global.php'),
],
'data/config-cache.php',
0600 // only owner can read and write
'data/config-cache.php'
);
```

Expand Down

0 comments on commit 77fc1c5

Please sign in to comment.