File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,13 @@ class SendQueuedMailable
33
33
*/
34
34
public $ timeout ;
35
35
36
+ /**
37
+ * The maximum number of unhandled exceptions to allow before failing.
38
+ *
39
+ * @return int|null
40
+ */
41
+ public $ maxExceptions ;
42
+
36
43
/**
37
44
* Indicates if the job should be encrypted.
38
45
*
@@ -51,6 +58,7 @@ public function __construct(MailableContract $mailable)
51
58
$ this ->mailable = $ mailable ;
52
59
$ this ->tries = property_exists ($ mailable , 'tries ' ) ? $ mailable ->tries : null ;
53
60
$ this ->timeout = property_exists ($ mailable , 'timeout ' ) ? $ mailable ->timeout : null ;
61
+ $ this ->maxExceptions = property_exists ($ mailable , 'maxExceptions ' ) ? $ mailable ->maxExceptions : null ;
54
62
$ this ->afterCommit = property_exists ($ mailable , 'afterCommit ' ) ? $ mailable ->afterCommit : null ;
55
63
$ this ->shouldBeEncrypted = $ mailable instanceof ShouldBeEncrypted;
56
64
}
You can’t perform that action at this time.
0 commit comments