You are here

public function DeployAuthenticatorSession::__construct in Deploy - Content Staging 7.2

Same name and namespace in other branches
  1. 7.3 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 22
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' => '',
  );
  $this->config = array_merge($this->config, $config);
}