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

Can not uninstall binds? #390

Open
henrya2 opened this issue Mar 19, 2019 · 2 comments
Open

Can not uninstall binds? #390

henrya2 opened this issue Mar 19, 2019 · 2 comments

Comments

@henrya2
Copy link

henrya2 commented Mar 19, 2019

Can not uninstall binds?

Specifications

  • Version: 1.10
  • Platform: Any
  • Subsystem: injector extension

We really need this feature, since our system need hot reloading during running. So lacking this feature make it impossible to correctly do hot reloading.

@anders-wind
Copy link

Did you find a way around this or did you drop di?

@kanstantsin-chernik
Copy link
Collaborator

@henrya2 there is a way to do it. You can use extensible_injector. Basically you are creating one 'core' di and second which is references first one and can use it content. Than if you need to uninstall something you are just getting rid of second injector but the 'core' one stays intact.

There is one more option: to extend runtime_provider with uninstall method. You are welcome to propose a PR. Seems like quite a straight forward thing to do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants