Here is what I want to do. I've got some yml file like...
My custom yml file :
# app/config/sv_parameters.yml
parameters:
sv_email:
debug: "debug@debug.com"
admin: "admin@admin.com"
...
The config.yml file, importing my custom params :
# app/config/config.yml
imports:
- { resource: sv_parameters.yml }
...
The config_dev.yml, importing the config.yml, and using a sub-parameter of my custom yml file :
# app/config/config_dev.yml
imports:
- { resource: config.yml }
swiftmailer:
delivery_address: "%sv_email.debug%"
But, when I clear:cache
:
You have requested a non-existent parameter "sv_email.debug".
I know in PHP multi-level parameters are arrays. But does that mean we can access them in pure YML ?
I could write my sv_email
parameters inline, but that's not as clean as multi levels..