mirror of
https://github.com/tiennm99/coolify.git
synced 2026-09-20 04:23:16 +00:00
refactor: remove SendsWebhook interface
Simplified webhook channel implementation to match TelegramChannel pattern without typed interface. Changes: - Removed SendsWebhook interface file - Removed interface from Team model - Removed routeNotificationForWebhook() method - WebhookChannel now uses untyped $notifiable like TelegramChannel 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
1 parent
dc15bee980
commit
556d93ecb8
3 files changed
+2
-16
No files matched your search
@@ -1,8 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace App\Notifications\Channels;
|
||||
|
||||
interface SendsWebhook
|
||||
{
|
||||
public function routeNotificationForWebhook();
|
||||
}
|
||||
@@ -10,7 +10,7 @@ class WebhookChannel
|
||||
/**
|
||||
* Send the given notification.
|
||||
*/
|
||||
public function send(SendsWebhook $notifiable, Notification $notification): void
|
||||
public function send($notifiable, Notification $notification): void
|
||||
{
|
||||
$webhookSettings = $notifiable->webhookNotificationSettings;
|
||||
|
||||
|
||||
Reference in new issue
Block a user