-
Description:I'd like to make Queue workers remember singletons between jobs, it's perfectly working on laravel, but i see there are diffent how to use queue Dispatch function on lumen. Steps To Reproduce:Some class with state:
AppServiceProvider:
Queued job:
Dispatch the job multiple times:
Running a queue worker using artisan queue:work should always log the same value on laravel, but in lumen it's always generate different value. Howewer, it's work perfectly on laravel with this syntax:
My Question: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Silly, i just need uncomment |
Beta Was this translation helpful? Give feedback.
Silly, i just need uncomment
$app->register(App\Providers\AppServiceProvider::class);
on bootstrap.php