Symfony services Symfony services symfony symfony

Symfony services


Every argument defined in the service configuration file must be wrapped in double quotes and separated by a comma, as the example above:

parameters:    app_bundle.webUrl: https://url.com/    app_bundle.Url: https://test.com    app_bundle.token: rerwe9888rewrjjewrwjservices:    app_bundle.send_message:        class: AppBundle\Utils\SendMessage        arguments: ["%app_bundle.webUrl%", "%app_bundle.Url%", "%app_bundle.token%", "@buzz"]

You provided only one string argument to the constructor: "%app_bundle.webUrl%, %app_bundle.Url%, %app_bundle.token%, @buzz"