config icon indicating copy to clipboard operation
config copied to clipboard

Ability to explain on how config is built

Open samdark opened this issue 2 years ago • 0 comments

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

samdark avatar Jan 15 '23 21:01 samdark