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

Container override #151

Open
Tishka17 opened this issue May 10, 2024 · 2 comments
Open

Container override #151

Tishka17 opened this issue May 10, 2024 · 2 comments
Labels
enhancement New feature or request to clarify Needs information or coordination with other issues
Milestone

Comments

@Tishka17
Copy link
Member

Clone container with adding/replacement of providers

@Tishka17 Tishka17 added enhancement New feature or request to clarify Needs information or coordination with other issues labels May 10, 2024
@Tishka17
Copy link
Member Author

It's a big question how we can keep decorators and aliases working

@Tishka17
Copy link
Member Author

The proposed API is to create top level container from existing one by passing additional providers

new_container = container.with_providers(provider)

this should rebuild container of same type (e.g. call make_container) from scratch using same settings and only adding more providers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request to clarify Needs information or coordination with other issues
Projects
None yet
Development

No branches or pull requests

1 participant