SimpleSAML_Metadata_MetaDataStorageHandler::getMetadataHandler PHP Method

getMetadataHandler() public static method

The metadata handler will be instantiated if this is the first call to this function.
public static getMetadataHandler ( ) : SimpleSAML_Metadata_MetaDataStorageHandler
return SimpleSAML_Metadata_MetaDataStorageHandler The current metadata handler instance.
    public static function getMetadataHandler()
    {
        if (self::$metadataHandler === null) {
            self::$metadataHandler = new SimpleSAML_Metadata_MetaDataStorageHandler();
        }
        return self::$metadataHandler;
    }

Usage Example

コード例 #1
0
 public function actionSso()
 {
     $metadata = \SimpleSAML_Metadata_MetaDataStorageHandler::getMetadataHandler();
     $idpEntityId = $metadata->getMetaDataCurrentEntityID('saml20-idp-hosted');
     $idp = \SimpleSAML_IdP::getById('saml2:' . $idpEntityId);
     \sspmod_saml_IdP_SAML2::receiveAuthnRequest($idp);
     assert('FALSE');
 }
All Usage Examples Of SimpleSAML_Metadata_MetaDataStorageHandler::getMetadataHandler