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

[9.x] Add DatabaseBatchRepository to provides() in BusServiceProvider #44833

Merged
merged 1 commit into from
Nov 3, 2022
Merged

[9.x] Add DatabaseBatchRepository to provides() in BusServiceProvider #44833

merged 1 commit into from
Nov 3, 2022

Conversation

lukinovec
Copy link
Contributor

In archtechx/tenancy, we use DatabaseBatchRepository directly, so we inject DatabaseBatchRepository instead of the BatchRepository interface. But injecting DatabaseBatchRepository throws BindingResolutionException ("Unresolvable dependency..."). Adding DatabaseBatchRepository to provides() in BusServiceProvider solves the problem.

Also, BusServiceProvider binds a singleton to DatabaseBatchRepository, so provides() should include the service.

@taylorotwell taylorotwell merged commit 9040418 into laravel:9.x Nov 3, 2022
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