I wonder where can I get more information about special syntax like @somevar
or %somevar%
in symfony2's yaml configuration?
For example, using @
defines a call to a service, that is how we pass dependencies to services. %somevar%
on the other hand refers to the value of an already defined parameter with the name somevar
.
So, if I do:
parameters:
custom: "some value"
another: %custom%
then another
will be populated with the value of custom
, which in my case is "some value". My question is, where are these relations documented?
My particular need is to be able to reference an element of an array, something like %somevar[somekey]%
, but that syntax doesn't work.
Thanks in advance!
EDIT: I found this: Full merge key support.
Full support for references, aliases, and full merge key. Don't repeat yourself by referencing common configuration bits.
in the yaml docs, but no furthur documentation about it..