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
String
key of the decorator factory to resolve - A
Function
that is the decorator factory