You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
Using the static method Transport::fromDsn we can't create a multiple transport (failover or roundrobin).
How to reproduce
<?phpuseSymfony\Component\Mailer\Transport;
require_once__DIR__ . '/vendor/autoload.php';
$transport = Transport::fromDsn('failover(smtp://localhost:1025 smtp://localhost:1026)');
// Expected result:// ----------------// A FailoverTransport instance with 2 transports EsmtpTransport// Actual result:// -------------// Uncaught Exception: Cannot rewind a generator that was already run in ... vendor/symfony/mailer/Transport.php:143
The text was updated successfully, but these errors were encountered:
…orts using Transport::fromDsn (atailouloute)
This PR was submitted for the master branch but it was merged into the 4.4 branch instead.
Discussion
----------
[Mailer] Fixed generator bug when creating multiple transports using Transport::fromDsn
| Q | A
| ------------- | ---
| Branch? | 4.4
| Bug fix? | yes
| New feature? | no
| Deprecations? | no
| Tickets | #37158
| License | MIT
| Doc PR | N/A
Commits
-------
c5833fa [Mailer] Fixed generator bug when creating multiple transports using Transport::fromDsn
Symfony version(s) affected: 4.4+
Description
Using the static method
Transport::fromDsn
we can't create a multiple transport (failover
orroundrobin
).How to reproduce
The text was updated successfully, but these errors were encountered: