Esteban Filardi Esteban Filardi - 1 year ago 334
YAML Question

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

I have an URL defined as a parameter in

. I want to create a service which is a SOAP client. The argument of the SOAP client is an URL for a
file. In my case, the URL of the
file is
+ "?wsdl"`.

Is there a way to concatenate the "?wsdl" to a parameter already defined in YAML?

Answer Source

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

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