Skip to content

Conversation

@fabpot
Copy link
Contributor

@fabpot fabpot commented Sep 6, 2018

No description provided.

$this->emailConverted = file_get_contents($dir.'emailConverted.html');

$this->mailer = Swift_Mailer::newInstance(Swift_NullTransport::newInstance());
$this->mailer = new Swift_Mailer(new Swift_NullTransport);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works well for both 5.1 and 6.0 as newInstance was really just a proxy method to __construct

Copy link
Contributor

@hkdobrev hkdobrev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @fabpot!

@hkdobrev hkdobrev merged commit 99d5eb3 into OpenBuildings:master Sep 7, 2018
@hkdobrev hkdobrev mentioned this pull request Sep 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants