Answer the question
In order to leave comments, you need to log in
How to merge several yaml files into one?
There are several layers of configuration files in yaml format.
- server config - default
config
- default server dev
The last one should overwrite the settings of the previous ones. Not all, but only those that are described in it. Which are not described are taken from the files above. To parse yaml files, a component from symfony2 is used. But the project itself does not use this framework
. Yaml allows you to use links
my:
setval: &id001
simple text
fortest:
testval: *id001
Answer the question
In order to leave comments, you need to log in
did you try to turn yml files into php arrays and then merge the arrays?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question