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

Make service provider deferrable #381

Merged
merged 2 commits into from
Mar 20, 2020

Conversation

klimov-paul
Copy link
Contributor

Service provider has been made deferrable, removing its unnecessary loading unless registered service is requested.

Currently QueryBuilderServiceProvider just consumes computing resources per each HTTP request processing without any reason as QueryBuilderRequest instance usually instantiated without DI involvement anyway.

Usage of Illuminate\Contracts\Support\DeferrableProvider requires minimal Laravel version raise up to 5.8.

@AlexVanderbist
Copy link
Member

Thanks for the PR! Gonna merge some final PRs for the last < L5.8 version first, then merge #370 and then we're good to merge this one. Soon™️

@crynobone
Copy link

Usage of Illuminate\Contracts\Support\DeferrableProvider requires minimal Laravel version raise up to 5.8.

You can still support older version if you want to.

https://crynobone.com/articles/deferred-service-provider-compatibility/

@AlexVanderbist
Copy link
Member

@crynobone thanks! We'll do this until we deprecate support for L5.7 and below.

@klimov-paul thanks again for the PR!

@AlexVanderbist AlexVanderbist merged commit e79530c into spatie:master Mar 20, 2020
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.

3 participants