'Symfony SMS - multiple transporters

I am just updating my symfony project to send sms with VONAGE https://symfony.com/doc/current/notifier.html

I used to have nexmo package to send it, so I could send either by NAME or a number. However with the new package .env vonage://KEY:SECRET@default?from=FROM I am struggling to do that.

I was able to add 2 transports under the config:

notifier:
    texter_transports:
        vonage: '%env(VONAGE_DNS)%'
        vonage1: '%env(VONAGE_DNS1)%'

But I can not find a way to choose what transport to use.

Any suggestions? Thanks a lot



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source