[2.2] Possibility to configure FailoverTransport or LoadBalancedTransport #8

lstrojny opened this Issue Jun 22, 2012 · 3 comments


None yet
3 participants

lstrojny commented Jun 22, 2012

The SwiftmailerBundle should allow to configure FailoverTransport or LoadBalancedTransport without doing it manually or using a compiler pass. Both of these transports work in a way that they can take various sub-transports and either do round-robin or failover.


lstrojny commented Jul 3, 2012

Looked into it, it’s too complicated to do in the bundle. Just do something like that in your own bundle:

<service id="swiftmailer.transport" alias="my_failover_transport"/>

<service id="my_failover_transport" class="%swiftmailer.transport.failover.class%" public="false">
    <call method="setTransports">
        <argument type="collection">
             <argument type="service" id="swiftmailer.transport.smtp"/>
             <argument type="service" id="swiftmailer.transport.sendmail"/>

lstrojny closed this Jul 3, 2012

stof reopened this Jul 3, 2012


stof commented Jul 3, 2012

Reopening it as we may decide to implement this feature later

notrix commented Jan 21, 2015


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment