public function DeployServiceRest::__construct in Deploy - Content Staging 7.2
Same name and namespace in other branches
- 7.3 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
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(),
);
$this->config = array_merge($this->config, $config);
}