Closed KnechtRootRecht232 closed 6 years ago
How to set the base url in client-config with .env?
eight_points_guzzle: clients: my_client: # Write here the host where to do requests base_url: "%env(TARGET_URL)%"
this throws: Invalid configuration for path "eight_points_guzzle.clients.sc_inspirations.base_url": base_url can be: string
Invalid configuration for path "eight_points_guzzle.clients.sc_inspirations.base_url": base_url can be: string
same when adding to parameters in services.yaml as config-var:
parameters
parameters: my_client.target_url: "%env(TARGET_URL)%"
and
eight_points_guzzle: clients: my_client: # Write here the host where to do requests base_url: "%my_client.target_url%"
solved it by my self:
'%env(string:TARGET_URL)%'
How to set the base url in client-config with .env?
this throws:
Invalid configuration for path "eight_points_guzzle.clients.sc_inspirations.base_url": base_url can be: string
same when adding to
parameters
in services.yaml as config-var:and