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

[Feature]: depinject should support default, overridable bindings #16727

Open
kocubinski opened this issue Jun 27, 2023 · 0 comments
Open

[Feature]: depinject should support default, overridable bindings #16727

kocubinski opened this issue Jun 27, 2023 · 0 comments
Labels

Comments

@kocubinski
Copy link
Member

Summary & Problem Definition

Given the solution at #16621, an parallel solution is for depinject to support default provider and supplier bindings which can be easily over ridden by the user. This avoids the additional layer of indirection (factory function) required in the current version of depinject.

Default bindings would also remove the need to carry the log supply everywhere in tests and app chains

			depinject.Supply(log.NewNopLogger()),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: 📋 Backlog
Development

Successfully merging a pull request may close this issue.

4 participants