Skip to content
Snippets Groups Projects
Commit 4aed2ee6 authored by Andreas Åkre Solberg's avatar Andreas Åkre Solberg
Browse files

Added in metadatahandler the possibility to select the new saml2metadata handler..

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@145 44740490-163a-0410-bde0-09ae8108e29a
parent fc1e9094
No related branches found
No related tags found
No related merge requests found
...@@ -89,6 +89,12 @@ abstract class SimpleSAML_Metadata_MetaDataStorageHandler { ...@@ -89,6 +89,12 @@ abstract class SimpleSAML_Metadata_MetaDataStorageHandler {
require_once('SimpleSAML/Metadata/MetaDataStorageHandlerFlatfile.php'); require_once('SimpleSAML/Metadata/MetaDataStorageHandlerFlatfile.php');
$sh = new SimpleSAML_Metadata_MetaDataStorageHandlerFlatfile(); $sh = new SimpleSAML_Metadata_MetaDataStorageHandlerFlatfile();
} elseif ($handler === 'saml2XMLmeta') {
require_once('SimpleSAML/Metadata/MetaDataStorageHandlerSAML2Meta.php');
$sh = new SimpleSAML_Metadata_MetaDataStorageHandlerFlatfile();
} else { } else {
throw new Exception('Invalid value for the [metadata.handler] configuration option. Unknown handler: ' . $handler); throw new Exception('Invalid value for the [metadata.handler] configuration option. Unknown handler: ' . $handler);
} }
......
...@@ -20,8 +20,6 @@ class MetaDataStorageHandlerSAML2Meta extends SimpleSAML_Metadata_MetaDataStorag ...@@ -20,8 +20,6 @@ class MetaDataStorageHandlerSAML2Meta extends SimpleSAML_Metadata_MetaDataStorag
/* This constructor is included in case it is needed in the the /* This constructor is included in case it is needed in the the
* future. Including it now allows us to write parent::__construct() in * future. Including it now allows us to write parent::__construct() in
* the subclasses of this class. * the subclasses of this class.
......
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