]> BookStack Code Mirror - bookstack/blobdiff - app/Activity/Notifications/Handlers/NotificationHandler.php
ExportFormatter: Add book description and check for empty book and chapter descriptio...
[bookstack] / app / Activity / Notifications / Handlers / NotificationHandler.php
index fdf97eb79539406f158096f4604c71c7f01abecb..8c5498664e1d4e55916a85d984309a6064469efc 100644 (file)
@@ -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;
 }