mirror of
https://github.com/envoyr/php-froxlor-client.git
synced 2026-04-28 04:06:19 +00:00
Compare commits
1 Commits
3.0.0-alph
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
563ecefe71
|
@@ -11,14 +11,21 @@ class Domains
|
|||||||
$this->customer = $customer;
|
$this->customer = $customer;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function create(string $domain, bool $letsencrypt = false): array
|
public function create(
|
||||||
|
string $domain,
|
||||||
|
bool $letsencrypt = false,
|
||||||
|
?string $description = null,
|
||||||
|
bool $isemaildomain = true,
|
||||||
|
bool $caneditdomain = true
|
||||||
|
): array
|
||||||
{
|
{
|
||||||
return $this->customer->server->request('Domains.add', [
|
return $this->customer->server->request('Domains.add', [
|
||||||
'customerid' => $this->customer->id,
|
'customerid' => $this->customer->id,
|
||||||
'domain' => $domain,
|
'domain' => $domain,
|
||||||
'letsencrypt' => $letsencrypt,
|
'letsencrypt' => $letsencrypt,
|
||||||
'isemaildomain' => true,
|
'isemaildomain' => $isemaildomain,
|
||||||
'caneditdomain' => true,
|
'caneditdomain' => $caneditdomain,
|
||||||
|
'description' => $description,
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user