[2.2] Possibility to configure FailoverTransport or LoadBalancedTransport #8

Open
lstrojny opened this Issue Jun 22, 2012 · 3 comments

Comments

Projects
None yet
3 participants
Contributor

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.

Contributor

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"/>
        </argument>
   </call>
</service>

lstrojny closed this Jul 3, 2012

stof reopened this Jul 3, 2012

Member

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