public function AcsfMessageRest::__construct in Acquia Cloud Site Factory Connector 8.2
Same name and namespace in other branches
- 8 src/AcsfMessageRest.php \Drupal\acsf\AcsfMessageRest::__construct()
Constructor.
Parameters
string $method: The request method. e.g. POST, GET, PUT, etc.
string $endpoint: The endpoint to contact on the remote server.
array $parameters: The list of parameters to send with the request.
AcsfConfig $config: (Optional) The configuration option.
string $ah_site: (Optional) The Acquia Hosting sitegroup.
string $ah_env: (Optional) The Acquia Hosting environment.
Closure $callback: (Optional) An anonymous callback function.
Throws
AcsfMessageMissingCredsException
Overrides AcsfMessage::__construct
File
- src/
AcsfMessageRest.php, line 29
Class
- AcsfMessageRest
- This class is an implementation of our XML-RPC service.
Namespace
Drupal\acsfCode
public function __construct($method, $endpoint, array $parameters = [], AcsfConfig $config = NULL, $ah_site = NULL, $ah_env = NULL, Closure $callback = NULL) {
if (empty($config)) {
$config = new AcsfConfigRest($ah_site, $ah_env);
}
parent::__construct($method, $endpoint, $parameters, $config, $ah_site, $ah_env, $callback);
}