I wonder where I can get more information about special syntax like @somevar or %somevar% in symfony2 yaml configuration?
For example, using @ defines a service call, so we pass dependencies to services. %somevar% , on the other hand, refers to the value of an already specified parameter named somevar .
So if yes:
parameters: custom: "some value" another: %custom%
then another will be filled with the custom value, which in my case is "some value". My question is where are these documents documented?
My special need is to be able to reference an array element, something like %somevar[somekey]% , but this syntax does not 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. Full merge key support. Full support for references, aliases, and full merge key. Don't repeat yourself by referencing common configuration bits.
in yaml docs but does not contain any documentation about it.
php yaml symfony configuration
Tony bogdanov
source share