Plugins base (#613)

* wip

* wip

* cleanup

* notification channels

* phpstan

* services

* remove server types

* refactoring

* refactoring
This commit is contained in:
Saeed Vaziry
2025-06-14 14:35:18 +02:00
committed by GitHub
parent adc0653d15
commit 131b828807
311 changed files with 3976 additions and 2660 deletions

View File

@ -8,6 +8,11 @@
class Discord extends AbstractNotificationChannel
{
public static function id(): string
{
return 'discord';
}
public function createRules(array $input): array
{
return [

View File

@ -10,6 +10,11 @@
class Email extends AbstractNotificationChannel
{
public static function id(): string
{
return 'email';
}
public function createRules(array $input): array
{
return [

View File

@ -6,6 +6,8 @@
interface NotificationChannel
{
public static function id(): string;
/**
* @param array<string, mixed> $input
* @return array<string, mixed>

View File

@ -8,6 +8,11 @@
class Slack extends AbstractNotificationChannel
{
public static function id(): string
{
return 'slack';
}
public function createRules(array $input): array
{
return [

View File

@ -11,6 +11,11 @@ class Telegram extends AbstractNotificationChannel
{
protected string $apiUrl = 'https://api.telegram.org/bot';
public static function id(): string
{
return 'telegram';
}
public function createRules(array $input): array
{
return [