Giter VIP home page Giter VIP logo

Comments (4)

bakura10 avatar bakura10 commented on June 17, 2024

Hi,

The documentation explain how you can get the transporter: https://github.com/juriansluiman/SlmMail/blob/master/docs/Mailgun.md#use-service-locator

from slmmail.

kimek avatar kimek commented on June 17, 2024

Cheers @bakura10 .
I mean set transport as 'global'. I'm working on quiet messy zend sites where are dozen of classes which using Zend\Mail** in vary different way. There are a lot of wrappers on top of it. That's why I'm looking for solution to set it as 'global' something like:

class Mailgun_Mail_Transport_Mailgun extends Zend_Mail_Transport_Abstract

but this will not work on Zend 2 :(

from slmmail.

bakura10 avatar bakura10 commented on June 17, 2024

Hmm you're going outside the scope of what I know here :p... If you have a service locator (but if it's messy, I suppose you don't have :p) you could overrdie the default key, so whenever they ask a given transport, you modify the factory to return a MailGun transport. But if the code is ugly and without proper injection, I'm afraid that you'll need to suffer a bit =).

from slmmail.

kimek avatar kimek commented on June 17, 2024

True, I don't have locator service :). This bits I miss in mine code. In this case I will 'play codegedon'. Thanks for help @bakura10 . All the best !

from slmmail.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.