Wraps the previously resolved instance or the component with a decorator by calling a decorator factory function.
A decorator resolver requires a second argument to the Container#use or RegistrationBuilder#use
call with which it is being used. This argument specifies the decorator factory and is either:
- A
Stringkey of the decorator factory to resolve - A
Functionthat is the decorator factory