Resolve (resolve v1.0.0)
Dependency injection and resolution at compile time or runtime
Link to this section Summary
Functions
Inject a module in place of another one.
Flag a module as eligible for dependency injection / resolution.
Revert this dependency to the original module.
Link to this section Functions
Link to this function
inject(target_module, injected_module)
Inject a module in place of another one.
Link to this function
resolve(module)
Flag a module as eligible for dependency injection / resolution.
Defaults to module
unless a new dependency is injected in its place.
Link to this function
revert(module)
Revert this dependency to the original module.
This function is idempotent and will not fail if Resolve already points to the original module.