roots / acorn

Laravel components for WordPress plugins and themes
https://roots.io/acorn/
MIT License
825 stars 94 forks source link

Feat: Add Laravel queue support #379

Closed KIKOmanasijev closed 6 months ago

KIKOmanasijev commented 6 months ago

This PR adds support for Laravel Queue.

How it works:

Log1x commented 6 months ago

Nice! Good to see it was an easy add. I figured it'd work since Livewire uses it (sync) but hadn't had time to look into console.

When you get a chance, can you run pint?

KIKOmanasijev commented 6 months ago

Thanks @Log1x !

I just did it 🚀

Log1x commented 6 months ago

Are you experiencing this issue at all? I thought it was maybe because I sorted the Kernel commands just now (without testing first) but reverting it (& clearing cache) I'm still getting an error when running any commands.

Screenshot

KIKOmanasijev commented 6 months ago

Hey @Log1x, it seems I was using a cached hard-coded fix on my machine locally.

The problem was that \Illuminate\Queue\QueueServiceProvider::class was registering the Worker class under 'queue.worker', but later it attempts to resolve it under the fully qualified class name.

Let me know if it works now on your end.