Skip to content

Commit

Permalink
[10.x]: add max exceptions to broadcast event (laravel#46800)
Browse files Browse the repository at this point in the history
  • Loading branch information
dammy001 authored Apr 17, 2023
1 parent 17ad285 commit 88c28e2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/Illuminate/Broadcasting/BroadcastEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,13 @@ class BroadcastEvent implements ShouldQueue
*/
public $backoff;

/**
* The maximum number of unhandled exceptions to allow before failing.
*
* @var int
*/
public $maxExceptions;

/**
* Create a new job handler instance.
*
Expand All @@ -55,6 +62,7 @@ public function __construct($event)
$this->timeout = property_exists($event, 'timeout') ? $event->timeout : null;
$this->backoff = property_exists($event, 'backoff') ? $event->backoff : null;
$this->afterCommit = property_exists($event, 'afterCommit') ? $event->afterCommit : null;
$this->maxExceptions = property_exists($event, 'maxExceptions') ? $event->maxExceptions : null;
}

/**
Expand Down

0 comments on commit 88c28e2

Please sign in to comment.