作者:袁甲2012_498 | 来源:互联网 | 2023-05-18 02:51
Immakingasmallexperiment.Intheolddays,mostpeoplewouldsaveconfigurationfilesinaphpf
Im making a small experiment. In the old days, most people would save configuration files in a php file as a bunch of constants or a class with a loooot of attributes. Now, we see projects like symfony using yaml or something else. My question is:
我做了一个小实验。在过去,大多数人会将配置文件保存在php文件中,作为一堆常量或具有属性的loooot的类。现在,我们看到像使用yaml或其他东西的symfony这样的项目。我的问题是:
If you could can pick from three different ways to store your config files: xml, yaml or php files, which one would you pick? Most important: Why?
如果您可以从三种不同的方式选择存储您的配置文件:xml,yaml或php文件,您会选择哪一种?最重要的是:为什么?
Thanks for your help
谢谢你的帮助
1 个解决方案