33        if (self::$instance !== 
null) {
 
   34            return self::$instance;
 
   38        $storeType = 
$config->getString(
'store.type', 
null);
 
   39        if ($storeType === 
null) {
 
   40            $storeType = 
$config->getString(
'session.handler', 
'phpsession');
 
   46                self::$instance = 
false;
 
   60                    $className = Module::resolveClass($storeType, 
'Store', 
'\SimpleSAML\Store');
 
   61                } 
catch (\Exception $e) {
 
   63                    $c[
'store.type'] = 
'phpsession';
 
   65                        "Invalid 'store.type' configuration option. Cannot find store '$storeType'.",
 
   70                self::$instance = 
new $className();
 
   73        return self::$instance;
 
An exception for terminatinating execution or to throw for unit testing.
static getInstance()
Retrieve our singleton instance.
static getInstance($instancename='simplesaml')
Get a configuration file by its instance name.
Attribute-related utility methods.