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