BookStack/app/Activity/Notifications/Handlers/NotificationHandler.php
Dan Brown 9779c1a357
Notifications: Started core user notification logic
Put together an initial notification.
Started logic to query and identify watchers.
2023-08-04 12:27:29 +01:00

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;
}