di icon indicating copy to clipboard operation
di copied to clipboard

Can not uninstall binds?

Open henrya2 opened this issue 5 years ago • 2 comments

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.

henrya2 avatar Mar 19 '19 09:03 henrya2

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

anders-wind avatar Sep 25 '19 10:09 anders-wind

@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.

kanstantsin-chernik avatar Oct 09 '19 14:10 kanstantsin-chernik