symfony - How to concatenate a parameter value with a constant string in Yaml -


i have url defined parameter in parameters.yml. want create service soap client. argument of soap client url wsdl file. in case, url of wsdl file "%parameter_url%" + "?wsdl"`.

is there way concatenate "?wsdl" parameter defined in yaml?

you don't need concatenation character, can append constant directly after parameter. example, service definition in services.yml:

my.service:     class:         %my.service.class%     arguments:            - @logger,        - %some_parameter%,        - %parameter_url%?wsdl,  

Comments

Popular posts from this blog

javascript - Google App Script ContentService downloadAsFile not working -

javascript - Function overwritting -

c# - Exception when attempting to modify Dictionary -