You are here

public static function Bakery::instance in Bakery Single Sign-On System 7.3

Returns an instance of the Bakery object.

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.

Return value

Bakery object.

1 call to Bakery::instance()
bakery_get_bakery in ./bakery.module
Helper function to retrieve the instance of Bakery.

File

./bakery.inc, line 58

Class

Bakery

Code

public static function instance(array $options = array()) {
  if (!self::$instance) {
    self::$instance = new self($options);
  }
  return self::$instance;
}