class Notification implements ExtenderInterface

Methods

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

No description

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

No description

beforeSending(callable|string $callback)

No description

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

No description

Details

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

Parameters

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

Return Value

Notification

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

Parameters

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

Return Value

Notification

Notification beforeSending(callable|string $callback)

Parameters

callable|string $callback

Return Value

Notification

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

Parameters

Container $container
Extension $extension