Skip to content

Commit

Permalink
Add retryUntil to SendQueueNotifications (laravel#30141)
Browse files Browse the repository at this point in the history
  • Loading branch information
bastien-phi authored and i-bajrai committed Oct 4, 2019
1 parent a7e2801 commit b8fc1e7
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/Illuminate/Notifications/SendQueuedNotifications.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,20 @@ public function retryAfter()
return $this->notification->retryAfter ?? $this->notification->retryAfter();
}

/**
* Get the expiration for the notification.
*
* @return mixed
*/
public function retryUntil()
{
if (! method_exists($this->notification, 'retryUntil') && ! isset($this->notification->timeoutAt)) {
return;
}

return $this->notification->timeoutAt ?? $this->notification->retryUntil();
}

/**
* Prepare the instance for cloning.
*
Expand Down

0 comments on commit b8fc1e7

Please sign in to comment.