shammadahmed
3 years ago

IoC Container | Multiple Bindings Simultaneously

Posted 3 years ago by shammadahmed

How can I bind multiple implementations to an interface? Like if I want to trigger NotifyEvent when a status is updated. And the NotifyEvent has the NotifierInterface as a dependency. How can I bind both SMSNotifier AND EmailNotifier to the NotifierInterface, so that the event is fired off to both of them?

Please sign in or create an account to participate in this conversation.