mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-11-29 20:23:52 +08:00
9779c1a357
Put together an initial notification. Started logic to query and identify watchers.
17 lines
424 B
PHP
17 lines
424 B
PHP
<?php
|
|
|
|
namespace BookStack\Activity\Notifications\Handlers;
|
|
|
|
use BookStack\Activity\Models\Loggable;
|
|
use BookStack\Users\Models\User;
|
|
|
|
interface NotificationHandler
|
|
{
|
|
/**
|
|
* Run this handler.
|
|
* Provides the activity type, related activity detail/model
|
|
* along with the user that triggered the activity.
|
|
*/
|
|
public function handle(string $activityType, string|Loggable $detail, User $user): void;
|
|
}
|