Closed jgarivera closed 3 years ago
Hi there 👋
Thanks for raising this issue, since I never use Lumen I'm never 100% sure of how well this package supports it.
I'm more than happy to accept a PR that fixes this. At the top of my head the changes — in the AsJob
trait — should just be:
PendingDispatch
.Laravel\Lumen\Bus\PendingDispatch
instead in the dispatch
method.Hi there 👋
I actually tried to implement this and it turned out to be a lot more tricky than expected. Mostly because there isn't a common interface of PendingDispatch
that overlaps Laravel and Lumen.
Since this issue doesn't seem to have much traction, I'm going to close this for housekeeping but if anyone wants to improve Laravel Actions' compatibility with Lumen, I'm more than happy to accept a PR for this.
Thank you for your understanding. 🌷
Good day👋! I acknowledge that this package does not officially state its support for Laravel Lumen, but I decided to give it a try. I am using
laravel/lumen-framework
v8.0 withlaravel-actions
v2.1 and I am encountering this error:Observingly, Lumen does not have the
Illuminate\Foundation\Bus\PendingDispatch
class. Lumen's counterpart for that class isLaravel\Lumen\Bus\PendingDispatch
.My current workaround for this issue is using Lumen's dispatch helper like so:
dispatch(TestAction::makeJob())
. But I would like to have Lumen support for the elegantTestAction::dispatch()
methods. Thank you!