mirror of
https://github.com/vitodeploy/vito.git
synced 2025-04-19 09:51:37 +00:00
* WIP notifications and other refactors - refactor notification channels - send notifications on events related to the servers and sites - delete server log files on server deletion - add telegram notification channel - add new icons - cache configs and icons on installation and updates - new navbar for dark mode and settings * discord channel * build assets * pint
28 lines
682 B
PHP
28 lines
682 B
PHP
<?php
|
|
|
|
namespace App\Notifications;
|
|
|
|
use App\Models\SourceControl;
|
|
use Illuminate\Notifications\Messages\MailMessage;
|
|
|
|
class SourceControlDisconnected extends AbstractNotification
|
|
{
|
|
public function __construct(protected SourceControl $sourceControl)
|
|
{
|
|
}
|
|
|
|
public function rawText(): string
|
|
{
|
|
return __('Source control [:sourceControl] has been disconnected from Vito', [
|
|
'sourceControl' => $this->sourceControl->profile,
|
|
]);
|
|
}
|
|
|
|
public function toMail(object $notifiable): MailMessage
|
|
{
|
|
return (new MailMessage)
|
|
->subject(__('Source control disconnected!'))
|
|
->line($this->rawText());
|
|
}
|
|
}
|