X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/45e75edf0544217e1a46f5628037770a6713b23b..refs/pull/5349/head:/app/Activity/Notifications/Handlers/NotificationHandler.php diff --git a/app/Activity/Notifications/Handlers/NotificationHandler.php b/app/Activity/Notifications/Handlers/NotificationHandler.php index fdf97eb79..8c5498664 100644 --- a/app/Activity/Notifications/Handlers/NotificationHandler.php +++ b/app/Activity/Notifications/Handlers/NotificationHandler.php @@ -2,12 +2,16 @@ namespace BookStack\Activity\Notifications\Handlers; +use BookStack\Activity\Models\Activity; use BookStack\Activity\Models\Loggable; +use BookStack\Users\Models\User; interface NotificationHandler { /** * Run this handler. + * Provides the activity, related activity detail/model + * along with the user that triggered the activity. */ - public function handle(string $activityType, string|Loggable $detail): void; + public function handle(Activity $activity, string|Loggable $detail, User $user): void; }