Modifies dependency resolution for a specific ID.
If a function is passed, it will be called, passing the target constructor, every time that ID needs to be resolved. Otherwise, the passed object is returned directly.
Optional
Modifies dependency resolution for a specific ID.
If a function is passed, it will be called, passing the target constructor, every time that ID needs to be resolved. Otherwise, the passed object is returned directly.