From aef6611307af4cafba55603c8e8fc76e40fb61e0 Mon Sep 17 00:00:00 2001 From: Tsvetelin Tsonev Date: Sat, 21 Apr 2018 12:26:57 +0200 Subject: [PATCH] Update README.md --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index d79a68c..b62b884 100644 --- a/README.md +++ b/README.md @@ -31,17 +31,17 @@ use Nilet\Components\FileSystem\Directory; require_once "vendor/autoload.php"; -$config = new Nilet\Components\Configuration\Config(); -$config->setConfigFolder(new Directory(__DIR__ . "/config")); -$api = new VirtualminApi("domain.com", 1221, "root", "password", $config); +$config = new Config(); +$config->setConfigDir(new Directory(__DIR__ . "/config")); +$api = new Virtualmin("domain.com", 1221, "root", "password", $config); $domain = "domain.com"; ``` Email and Ftp accounts ``` -$emailManager = $api->createEmailAccountManager(); -$ftpManager = $api->createFtpAccountManager(); +$emailManager = $api->createEmailManager(); +$ftpManager = $api->createFtpManager(); $emailManager->createEmailAccount($domain, "emailaccount1", "123", "Real name", 5); $ftpManager->createFtpAccount($domain, "onlyftp4", "123");