yiisoft / config

Configuration management
https://www.yiiframework.com/
BSD 3-Clause "New" or "Revised" License
31 stars 11 forks source link

Add optional parameter "depth" to recursive modifier #154

Closed vjik closed 9 months ago

vjik commented 9 months ago

By default parameter is null. It means infinity depth.

samdark commented 9 months ago

What's the use-case for it?

vjik commented 9 months ago

Widget themes:

[
  %THEME_NAME% => [
    %WIDGET_CLASS% => [ ... %DEFINITION% ... ],
  ],
]

In this use-case need recursive merge with one level depth only.