yiisoft / config

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

Remove duplicate configs #16

Closed Nex-Otaku closed 3 years ago

Nex-Otaku commented 3 years ago
Q A
Is bugfix? No
New feature? No
Breaks BC? No
Fixed issues -
Nex-Otaku commented 3 years ago

There is no need to add in application hundreds of default package config files just to sit there. Defaults are already available in packages, so why not take them from there?

With all this duplicates, configuration becomes huge and bloated right after first install. Tons of extra files that are never used by a developer and standing in his way.

It is a big drawback comparing to all other popular frameworks, including Yii2.

So please remove all this duplicate default configs and leave only those that are changed on app level.

Yes it must be easy to extend default config, but it is already easy - just copy-paste a file from vendor folder to app config folder. We can provide console command to "export" default config to its place in app, for more convenience.

samdark commented 3 years ago

Won't be merged as is but the idea about having less configs by default is alright. Will discuss it futher in a separate issue.