Some nodes of configuration in separate files

Notice: This thread is very old.
WindBridges
Member | 10
+
0
-

I want to give user possibility to add some configuration by himself. He should create some neon files in specified folder, system must check these files and if they exist then add content of these files to certain nodes. For example, file named foo.neon I need to add to config node common.parameters.foo and bar.neon to common.parameters.bar. How should I do this?

HosipLan
Moderator | 4668
+
0
-

Not sure, if this is a good idea.

You can do this using the Nette\Config\Configurator::addConfig() method, but I wouldn't suggest that.

Please, tell us what is the purpose of this and we will help you figure out better approach.