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
string $serializer
array $driversEnabledByDefault

Return Value

Notification

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

Parameters

string $driverName
string $driver
array $typesEnabledByDefault

Return Value

Notification

Notification beforeSending(callable|string $callback)

Parameters

callable|string $callback The callback can be a closure or an invokable class, and should accept: - \Flarum\Notification\Blueprint\BlueprintInterface $blueprint - \Flarum\User\User[] $newRecipients The callable should return an array of recipients. - \Flarum\User\User[] $newRecipients

Return Value

Notification

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

Parameters

Container $container
Extension $extension