Commit 23f0f21
authored
fix: callback handlers for queue workers (#43)
When using a queue worker, each notification resets the scope.
The problem here is that when this happens, all of the callbacks that were registered are no longer available - this is because they were all registered to a scoped singleton.
I'm not sure how anyone else is able to use this package with a queue worker - out of the box it only works on "sync" mode, unless we remove the scoped singleton.
In-fact, I'm curious as to why the singleton was scoped in the first place as part of the laravel 9 compatibility upgrades?1 parent 82a4f15 commit 23f0f21
1 file changed
+4
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
46 | 40 | | |
47 | 41 | | |
0 commit comments