-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Service Provider 'defer' boolean property has been deprecated since 5.8, Why is it still in the package? #898
Comments
Hmmm 🤔 Good point. I guess it's a non-issue in practice because no one references the registered services out of context etc. |
I didn't want to imply this shouldn't be fixed though 😅 |
I double checked with the docs and yep, as long as there's a boot, the deferred is useless the way I see it. Even at the time the deferred was switched on, there was already a boot method, can be seen at a916da0 when you expand the rest of the file a bit. Maybe back then it did something but nowadays (I'm "almost" sure) , deferred only works when you truly only |
'back then' it worked by setting the |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
I guess we can just remove the property |
We've PR #914 which removes it but also switches to the new way since >= L6 using the marker interface. However as mentioned there, this can't be merged as long as 5.5 is still supported and we don't even have tests to catch this. I would suggest to be pragmatic and merge #914 for a release in September were we also bump composer and drop 5.5 for good, as the LTS is definitely over by then: |
This was all long ago, merged and released -> property is gone. |
The defer boolean property on the service provider which is/was used to indicate if a provider is deferred has been deprecated. In order to mark the service provider as deferred it should implement the Illuminate\Contracts\Support\DeferrableProvider contract.
- Laravelso why is the:
still in
IdeHelperServiceProvider
?also if
public function boot()
exist, how can it be deferrable?The text was updated successfully, but these errors were encountered: