mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-05 16:02:34 +00:00
Plugins base (#613)
* wip * wip * cleanup * notification channels * phpstan * services * remove server types * refactoring * refactoring
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user