Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to explain on how config is built #125

Open
samdark opened this issue Jan 15, 2023 · 0 comments
Open

Ability to explain on how config is built #125

samdark opened this issue Jan 15, 2023 · 0 comments
Labels
type:enhancement Enhancement

Comments

@samdark
Copy link
Member

samdark commented Jan 15, 2023

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:enhancement Enhancement
Projects
None yet
Development

No branches or pull requests

1 participant