I have an URL defined as a parameter in parameters.yml
. I want to create a service which is a SOAP client. The argument of the SOAP client is an URL for a wsdl
file. In my case, the URL of the wsdl
file is "%parameter_url%"
+ "?wsdl"`.
Is there a way to concatenate the "?wsdl" to a parameter already defined in YAML?
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:
my.service:
class: "%my.service.class%"
arguments:
- "@logger",
- "%some_parameter%",
- "%parameter_url%?wsdl",
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With