|
|
@@ -88,33 +88,13 @@ class AddEmailAliasDataProvider extends BaseDataProvider
|
|
|
$productManager = new ProductManager();
|
|
|
$productManager->loadByHostingId($hid);
|
|
|
|
|
|
- /**
|
|
|
- *
|
|
|
- * get soap create alias service
|
|
|
- * set service configuration
|
|
|
- */
|
|
|
- $service =(new KerioManager())
|
|
|
- ->getApiByHosting($hid)
|
|
|
- ->soap
|
|
|
- ->service()
|
|
|
- ->createAccountAlias()
|
|
|
- ->setProductManager($productManager)
|
|
|
- ->setFormData($this->formData);
|
|
|
-
|
|
|
- /**
|
|
|
- *
|
|
|
- * run service
|
|
|
- */
|
|
|
- $result = $service->run();
|
|
|
-
|
|
|
- /**
|
|
|
- *
|
|
|
- * return success or error response
|
|
|
- */
|
|
|
- if(!$result)
|
|
|
- {
|
|
|
- return (new HtmlDataJsonResponse())->setMessageAndTranslate($service->getError())->setStatusError();
|
|
|
- }
|
|
|
+ logModuleCall(
|
|
|
+ 'kerioEmail',
|
|
|
+ __FUNCTION__,
|
|
|
+ $this->formData,
|
|
|
+ 'Debug Error',
|
|
|
+ $this->getWhmcsParamByKey('domain')
|
|
|
+ );
|
|
|
|
|
|
return (new HtmlDataJsonResponse())->setMessageAndTranslate('emailAliasHasBeenCreated')->setStatusSuccess();
|
|
|
}
|