ChannelManager
extends ChannelManager
in package
implements
ChannelManagerInterface
Class ChannelManager.
Tags
Table of Contents
Interfaces
Properties
- $notifiableChannelCacheKey : string
- $notificationChannelCacheKey : string
Methods
- forgetChannelCacheForNotifiable() : bool
- getChannelsForAllTypes() : array<string|int, mixed>
- get available channels for all notification types which are currently preferred by site configurations.
- getChannelsForNotifiable() : array<string|int, mixed>
- get available channels for all notification types which are currently preferred by $notifiable.
- getChannelsForNotifiableByType() : array<string|int, mixed>
- get available channels for notification $type which are currently preferred by $notifiable.
- createMobilepushDriver() : mixed
- Create an instance of the mobilepush driver.
- createSmsDriver() : mixed
- Create an instance of the SMS driver.
- createWebpushDriver() : mixed
- Create an instance of the mobilepush driver.
Properties
$notifiableChannelCacheKey
private
string
$notifiableChannelCacheKey
= 'notification.notifiable.channels.%s_%s'
$notificationChannelCacheKey
private
string
$notificationChannelCacheKey
= 'notification.notification_type.channels'
Methods
forgetChannelCacheForNotifiable()
public
forgetChannelCacheForNotifiable(IsNotifiable $notifiable) : bool
Parameters
- $notifiable : IsNotifiable
Return values
boolgetChannelsForAllTypes()
get available channels for all notification types which are currently preferred by site configurations.
public
getChannelsForAllTypes() : array<string|int, mixed>
Return values
array<string|int, mixed>getChannelsForNotifiable()
get available channels for all notification types which are currently preferred by $notifiable.
public
getChannelsForNotifiable(IsNotifiable $notifiable) : array<string|int, mixed>
Parameters
- $notifiable : IsNotifiable
Return values
array<string|int, mixed>getChannelsForNotifiableByType()
get available channels for notification $type which are currently preferred by $notifiable.
public
getChannelsForNotifiableByType(IsNotifiable $notifiable, string $type) : array<string|int, mixed>
Parameters
- $notifiable : IsNotifiable
- $type : string
Return values
array<string|int, mixed>createMobilepushDriver()
Create an instance of the mobilepush driver.
protected
createMobilepushDriver() : mixed
Tags
createSmsDriver()
Create an instance of the SMS driver.
protected
createSmsDriver() : mixed
Tags
createWebpushDriver()
Create an instance of the mobilepush driver.
protected
createWebpushDriver() : mixed