yiisoft / config

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

Ability to explain on how config is built #125

Open samdark opened 1 year ago

samdark commented 1 year ago

Problem

It can be hard to get an idea on what files are read when getting a key from a certain config group and environment.

Solution

Either have a config/explain console command or debugger panel that gives you details about how configs are read and where the key requested was found.

./yii config/explain --env=prod --group=params --key=cache.enabled

config/params.php - found
config/params-local.php - not found

Key is loaded from config/params.php