WIP: Add Create Domain capability

This commit is contained in:
Miguel Nogueira
2019-01-30 13:39:28 +00:00
parent a8f089e3b2
commit c7bcaa2093
3 changed files with 51 additions and 16 deletions

View File

@@ -22,6 +22,7 @@ class VirtualminHandler
// Creates a domain with the specified password. The username will be the domain with the .tld removed.
// The features array will be populated when the method is exposed with the correct package name provided.
// Note: the features array contains the numerical ID of the chosen plan.
public function CreateVirtualServer($DomainName, $Password, Array $Features = [])
{
return $this->virtualmin->create($DomainName, $Password, $Features);