update fix deadcode, security

This commit is contained in:
baodev0
2026-09-28 08:26:29 +07:00
parent 3af59bd9c5
commit 82080b5b84
452 changed files with 4857 additions and 26289 deletions
-30
View File
@@ -234,36 +234,6 @@ class ServerService
return $result;
}
public function updateDomain(int $pleskDomainId, array $data = []): array|false
{
if (empty($pleskDomainId) || empty($data)) {
return false;
}
if (!$this->server) {
$this->server = $this->serverRepository->find($data['dns_manager_server_id']);
}
$result = $this->pleskDomainService->updateDomain($this->server, $pleskDomainId, $data);
$this->resetServer();
return $result;
}
public function removeDomain(int $pleskDomainId): bool
{
if (empty($this->server)) {
return false;
}
$result = $this->pleskDomainService->removeDomain($this->server, $pleskDomainId);
$this->resetServer();
return $result;
}
public function addServerById(int $serverId): bool
{
$this->server = $this->serverRepository->find($serverId);