24 lines
592 B
PHP
24 lines
592 B
PHP
<?php
|
|
|
|
namespace App\Notification\Providers;
|
|
|
|
use App\Notification\NotificationProvider;
|
|
use App\Notification\INotificationProvider;
|
|
use App\Models\JobInfo;
|
|
use Illuminate\Support\Facades\Cache;
|
|
|
|
class AllNotification extends NotificationProvider {
|
|
private const NOTIFICATIONS_PROVIDERS = [
|
|
DiscordWebHookNotification::class,
|
|
];
|
|
|
|
/**
|
|
* @inheritDoc
|
|
*/
|
|
public static function send(\App\Notification\Notification $notification): void {
|
|
foreach (self::NOTIFICATIONS_PROVIDERS as $provider) {
|
|
$provider::send($notification);
|
|
}
|
|
}
|
|
}
|