Skip to content
Snippets Groups Projects
Commit 0c432bd2 authored by Sergio Gómez's avatar Sergio Gómez
Browse files

Removed a 'if' sentence than prevents a Store class couldn't be added if it is...

Removed a 'if' sentence than prevents a Store class couldn't be added if it is named with a namespace instead with the sspmod_<module>_Store_<class> way.
parent 029cc7fb
No related branches found
No related tags found
No related merge requests found
......@@ -47,9 +47,6 @@ abstract class SimpleSAML_Store {
self::$instance = new SimpleSAML_Store_SQL();
break;
default:
if (strpos($storeType, ':') === FALSE) {
throw new SimpleSAML_Error_Exception('Unknown datastore type: ' . var_export($storeType, TRUE));
}
/* Datastore from module. */
$className = SimpleSAML_Module::resolveClass($storeType, 'Store', 'SimpleSAML_Store');
self::$instance = new $className();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment