Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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?
- Loading branch information