throw new RuntimeException('All transports failed.'
);
} /**
* Rotates the transport list around and returns the first instance.
*/
protected function getNextTransport(MessageInterface
$message): ?TransportInterface
{ if (-1 ===
$this->cursor
) { $this->cursor =
$this->
getInitialCursor();
} $cursor =
$this->cursor;
while (true
) { $transport =
$this->transports
[$cursor];
if (!
$transport->
supports($message)) { $cursor =
$this->
moveCursor($cursor);
continue;
}