vito/app/Helpers/Notifier.php
Saeed Vaziry 428140b931
refactoring (#116)
- refactoring architecture
- fix incomplete ssh logs
- code editor for scripts in the app
- remove Jobs and SSHCommands
2024-03-14 20:03:43 +01:00

20 lines
522 B
PHP

<?php
namespace App\Helpers;
use App\Models\NotificationChannel;
use App\Notifications\NotificationInterface;
class Notifier
{
/**
* In the future we can send notifications based on the notifiable instance,
* For example, If it was a server then we will send the channels specified by that server
* For now, we will send all channels.
*/
public function send(object $notifiable, NotificationInterface $notification): void
{
NotificationChannel::notifyAll($notification);
}
}