-
-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Laravel 10 upgrade #46
Comments
Support for Laravel 10 would be really appreciated... |
Please refer to this PR to solve the problem with Laravel 10.x |
Feel free to use my fork https://github.com/ksimenic/lucid. It has all optimizations for Laravel 10. All you need to do is to add following in your composer.json
and then
|
@ksimenic we are currently using your fork in combination with laravel 10; but are running into an issue where that all jobs and operation that have the That's caused by this little piece of code: https://github.com/laravel/framework/blob/11.x/src/Illuminate/Bus/Dispatcher.php#L92 that always forces execution to the sync queue. Any idea what the best option would be to get the 'old' behaviour back? |
Alright, have looked, but the least impact way in my option will be to alter the UnitDispatcher on line 58: $result = $this->dispatchSync($unit);
} to: if ($unit instanceof ShouldQueue) {
return $this->dispatch($unit);
}
$result = $this->dispatchSync($unit);
} Have created a pull request for this ksimenic#4 |
In laravel 10, I think Jobs now respond with
Illuminate\Foundation\Bus\PendingDispatch
objects rather than the response of what the handle method has.In feature:
now responds with
instead of the response of what the handle method does:
The text was updated successfully, but these errors were encountered: