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

@ -0,0 +1,29 @@
<?php
namespace App\Services\Webserver;
use App\Models\Site;
use App\Models\Ssl;
use App\Services\ServiceInterface;
interface Webserver extends ServiceInterface
{
public function createVHost(Site $site): void;
/**
* @param array<string, string> $replace replace blocks
* @param array<int, string> $regenerate regenerates the blocks
* @param array<string, string> $append appends to the blocks
*/
public function updateVHost(Site $site, ?string $vhost = null, array $replace = [], array $regenerate = [], array $append = []): void;
public function getVHost(Site $site): string;
public function deleteSite(Site $site): void;
public function changePHPVersion(Site $site, string $version): void;
public function setupSSL(Ssl $ssl): void;
public function removeSSL(Ssl $ssl): void;
}