public function DeployServiceRest::__construct in Deploy - Content Staging 7.3
Same name and namespace in other branches
- 7.2 includes/DeployServiceRest.inc \DeployServiceRest::__construct()
Constructor for a service plugin.
Parameters
array $config: An associative array of configuration settings for the service plugin.
Overrides DeployService::__construct
1 call to DeployServiceRest::__construct()
- DeployRemoteCcServiceRestJSON::__construct in modules/
deploy_remote_cc/ plugins/ DeployRemoteCcServiceRestJSON.inc - Constructor for a service plugin.
1 method overrides DeployServiceRest::__construct()
- DeployRemoteCcServiceRestJSON::__construct in modules/
deploy_remote_cc/ plugins/ DeployRemoteCcServiceRestJSON.inc - Constructor for a service plugin.
File
- includes/
DeployServiceRest.inc, line 34 - Implementation of a REST based client for deploying entities.
Class
- DeployServiceRest
- Base class for REST-based service plugins.
Code
public function __construct(array $config = array()) {
$this->config += array(
'debug' => FALSE,
'url' => '',
'headers' => array(),
'context' => $this
->fetchContext(),
'timeout' => 30.0,
);
$this->config = array_merge($this->config, $config);
}