yiisoft / config

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

Inconvenient use of the environment #99

Closed thenotsoft closed 2 years ago

thenotsoft commented 2 years ago

Now when using an environment, prod, dev, test or stage, throws an exception if the environment is not specified in composer.json "config-plugin-environments". But if you just specify the environment with an empty value

"config-plugin-environments": {
        "test": {},
        "dev": {},
        "prod": {}
}

it does not get into the merge-plan, you need to include the config file.

I expect that if no environment exists, it will take the default "/", or add the ability to specify a group of environments that take the same configs, for example prod and stage.

samdark commented 2 years ago

Yes. That would be way more convenient.