minor #37878 🐛 [Mailer] Fix mailjet scheme bug (tcheymol)
This PR was merged into the 5.2-dev branch.
Discussion
----------
🐛 [Mailer] Fix mailjet scheme bug
| Q | A
| ------------- | ---
| Branch? | 5.1
| Bug fix? | yes
| New feature? | no
| Deprecations? | no
| Tickets | no
| License | MIT
| Doc PR | no
<!--
Fix a typo introduced in mailjet-mailer accepted schemes that causes the scheme mailjet+api to not be recognized
Commits
-------
6f357a67cc
🐛 [Mailer] Fix mailjet scheme bug
This commit is contained in:
commit
da9672dccd
@ -25,7 +25,7 @@ class MailjetTransportFactory extends AbstractTransportFactory
|
|||||||
$password = $this->getPassword($dsn);
|
$password = $this->getPassword($dsn);
|
||||||
$host = 'default' === $dsn->getHost() ? null : $dsn->getHost();
|
$host = 'default' === $dsn->getHost() ? null : $dsn->getHost();
|
||||||
|
|
||||||
if ('maijlet+api' === $scheme) {
|
if ('mailjet+api' === $scheme) {
|
||||||
return (new MailjetApiTransport($user, $password, $this->client, $this->dispatcher, $this->logger))->setHost($host);
|
return (new MailjetApiTransport($user, $password, $this->client, $this->dispatcher, $this->logger))->setHost($host);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user