Skip to content

Commit

Permalink
readme
Browse files Browse the repository at this point in the history
  • Loading branch information
vjik committed Dec 6, 2023
1 parent 4a41078 commit 53dd7e9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -465,6 +465,12 @@ $config = new Config(
$params = $config->get('params'); // merged recursively
```

If you want to recursively merge arrays to a certain depth, to use the `RecursiveMerge::groupsWithDepth()` method:

```php
RecursiveMerge::groups(['widgets-themes', 'my-custom-group'], 1)
```

### Reverse merge of arrays

Result of reverse merge is being ordered descending by data source. It is useful for merging module config with
Expand Down

0 comments on commit 53dd7e9

Please sign in to comment.