/**
* @return void
*/
public function onMessageFailed(WorkerMessageFailedEvent
$event) { if ($event->
willRetry()) { return;
} if (!
$this->failureSenders->
has($event->
getReceiverName())) { return;
} $failureSender =
$this->failureSenders->
get($event->
getReceiverName());
$envelope =
$event->
getEnvelope();
// avoid re-sending to the failed sender
if (null !==
$envelope->
last(SentToFailureTransportStamp::
class)) { return;
}