ChannelDispatcher
in package
implements
NotificationDispatcherInterface
FinalYes
Fans out one notification to every registered channel. An empty dispatcher is a valid no-op and is the default the pipeline uses when the consumer has not configured any notification channels.
Table of Contents
Interfaces
Methods
- __construct() : mixed
- dispatch() : void
- withChannel() : self
Methods
__construct()
public
__construct(NotificationChannelInterface ...$channels) : mixed
Parameters
- $channels : NotificationChannelInterface
dispatch()
public
dispatch(Notification $notification) : void
Parameters
- $notification : Notification
Attributes
- #[Override]
withChannel()
public
withChannel(NotificationChannelInterface $channel) : self
Parameters
- $channel : NotificationChannelInterface