public function Bakery::__construct in Bakery Single Sign-On System 7.3
Parameters
array Array of Bakery settings. Required keys:: 'is_master' (bool) Whether this site is a Bakery master or not. 'domain' (string) Bakery domain. 'key' (string) Per-cluster Bakery secret key.
File
- ./
bakery.inc, line 35
Class
Code
public function __construct(array $config) {
$this->isMaster = $config['is_master'];
$this->domain = $config['domain'];
$this->key = $config['key'];
$this->SsoCookieName = isset($config['sso_cookie']) ? $config['sso_cookie'] : 'BAKERYSSO';
//$this->loginCookieName = isset($options['login_cookie']) ? $options['login_cookie'] : 'BAKERYLOG';
$this->subCookieName = isset($config['sub_cookie']) ? $config['sub_cookie'] : 'BAKERYSUB';
$this->lifetime = isset($config['lifetime']) ? $config['lifetime'] : 3600;
$this->expiration = isset($config['expiration']) ? $config['expiration'] : 3600 * 24 * 7;
//$this->slaves = isset($config['slaves']) ? $config['slaves'] : array();
$this->debug = isset($config['debug']) ? $config['debug'] : FALSE;
}