public function DeployAuthenticatorSession::__construct in Deploy - Content Staging 7.3
Same name and namespace in other branches
- 7.2 plugins/DeployAuthenticatorSession.inc \DeployAuthenticatorSession::__construct()
Constructor for a deploy authenticator.
Parameters
DeployService $service: The service object that we need to authenticate for.
array $config: An associative array representing the configration options for the authenticator.
Overrides DeployAuthenticator::__construct
File
- plugins/
DeployAuthenticatorSession.inc, line 23 - Session based authentication plugin.
Class
- DeployAuthenticatorSession
- Authentication class that uses session authentication.
Code
public function __construct(DeployService $service, array $config = array()) {
$this->service = $service;
$this->config += array(
'debug' => FALSE,
'username' => '',
'password' => '',
);
if (!empty($config['username']) && !empty($config['password'])) {
$config['username'] = _deploy_decrypt($config['username']);
$config['password'] = _deploy_decrypt($config['password']);
}
$this->config = array_merge($this->config, $config);
}