Sends a notification to a single notifiable instance or an array of notifiable instances.
notifiables
INotifiable | array<INotifiable>
INotifiable
array<
>
true
A single Notifiable instance or an array of Notifiable instances that will receive the notification.
notification
string | BaseNotification
string
BaseNotification
The notification instance or a string WireBox mapping to send to the notifiables.
properties
struct
false
{}
A struct of properties to populate the notification with.
Return: notification instance, after it has been populated and sent to the notifiables.
Returns a channel instance by name.
channelName
The name of the channel to return.
Return: A BaseProvider instance for the channel name.
BaseProvider
Throws: Megaphone.Configuration.MissingChanel
Megaphone.Configuration.MissingChanel
Returns a map of channel names to Provider instances.
No arguments
Return: A struct map of channel names to Provider instances.
Last updated 2 years ago