Skip to content
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

Add dispatchSync method #82

Merged
merged 1 commit into from
Apr 28, 2021
Merged

Add dispatchSync method #82

merged 1 commit into from
Apr 28, 2021

Conversation

dmason30
Copy link
Contributor

@dmason30 dmason30 commented Apr 24, 2021

The method dispatch_now was marked as deprecated and dispatch_sync was added in Laravel 8.36.

laravel/framework#36835
laravel/framework#36834

This adds a dispatchSync method that fallbacks to dispatchNow if an earlier Laravel version (6, 7, < 8.36) is being used by checking if the new dispatch_sync method exists or not.

@freekmurze freekmurze merged commit ea5d717 into spatie:master Apr 28, 2021
@freekmurze
Copy link
Member

Thanks!

@dmason30 dmason30 deleted the dispatch_sync branch April 28, 2021 17:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants