How to create a custom yaml config file in Symfony

前端 未结 6 474
面向向阳花
面向向阳花 2021-02-02 13:52

What I want to do is quite simple: store data in a custom config file that I want to read later on.

I created my file something.yml that I put in the global

6条回答
  •  离开以前
    2021-02-02 13:52

    if your cached config-file is empty, you have probably forgotten to set the environment in your yml-file.

    like:

    all:
      test:  value1
      test2: value2
    
    dev:
      test2: value3
    

提交回复
热议问题