class Notification implements ExtenderInterface

Methods

type(string $blueprint, string $serializer, array $driversEnabledByDefault = [])

No description

driver(string $driverName, string $driver, array $typesEnabledByDefault = [])

No description

extend(Container $container, Extension $extension = null)

No description

Details

Notification type(string $blueprint, string $serializer, array $driversEnabledByDefault = [])

Parameters

string $blueprint <p>The ::class attribute of the blueprint class. This blueprint should implement \Flarum\Notification\Blueprint\BlueprintInterface.</p>
string $serializer <p>The ::class attribute of the serializer class. This serializer should extend from \Flarum\Api\Serializer\AbstractSerializer.</p>
array $driversEnabledByDefault <p>The names of the drivers enabled by default for this notification type. (example: alert, email).</p>

Return Value

Notification

Notification driver(string $driverName, string $driver, array $typesEnabledByDefault = [])

Parameters

string $driverName <p>The name of the notification driver.</p>
string $driver <p>The ::class attribute of the driver class. This driver should implement \Flarum\Notification\Driver\NotificationDriverInterface.</p>
array $typesEnabledByDefault <p>The names of blueprint classes of types enabled by default for this driver.</p>

Return Value

Notification

extend(Container $container, Extension $extension = null)

Parameters

Container $container
Extension $extension