Files
ladill-servers/app/Services/Hosting/Contracts/AppInstallerInterface.php
T
isaaccladandCursor b6c8ac343f Extract Ladill Servers as standalone app at servers.ladill.com.
VPS and dedicated server ordering, managed panels, SSO, billing, and launcher integration — forked from hosting infrastructure with server-focused routes and dashboard.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-06 19:18:30 +00:00

26 lines
736 B
PHP

<?php
namespace App\Services\Hosting\Contracts;
use App\Models\HostedSite;
use App\Models\AppInstallation;
interface AppInstallerInterface
{
public function getSupportedApps(): array;
public function getAppVersions(string $appType): array;
public function install(HostedSite $site, string $appType, array $config): AppInstallation;
public function uninstall(AppInstallation $installation): bool;
public function update(AppInstallation $installation, ?string $version = null): bool;
public function getStatus(AppInstallation $installation): array;
public function backup(AppInstallation $installation): string;
public function restore(AppInstallation $installation, string $backupPath): bool;
}