mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-04 15:32:35 +00:00
* wip * wip * cleanup * notification channels * phpstan * services * remove server types * refactoring * refactoring
30 lines
849 B
PHP
Executable File
30 lines
849 B
PHP
Executable File
<?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;
|
|
}
|