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

@ -2,19 +2,12 @@
namespace App\SiteTypes;
use App\DTOs\DynamicFieldsCollectionDTO;
interface SiteType
{
public static function id(): string;
public function language(): string;
/**
* @return array<string>
*/
public function supportedFeatures(): array;
public function fields(): DynamicFieldsCollectionDTO;
/**
* @param array<string, mixed> $input
* @return array<string, mixed>
@ -22,12 +15,16 @@ public function fields(): DynamicFieldsCollectionDTO;
public function createRules(array $input): array;
/**
* The fields here will be replaced in the Site model
*
* @param array<string, mixed> $input
* @return array<string, mixed>
*/
public function createFields(array $input): array;
/**
* The fields here will be replaced in the type_data column as json
*
* @param array<string, mixed> $input
* @return array<string, mixed>
*/
@ -39,4 +36,6 @@ public function install(): void;
* @return array<array<string, string>>
*/
public function baseCommands(): array;
public function vhost(string $webserver): string;
}