src/Metadata.php
public static function load($idpMetadataFilePath, $spMetadataFilePath)
    {
        $metadata = (new static());

        return $metadata
            ->setIdentityProvider($metadata->createEntityDescriptor(file_get_contents($idpMetadataFilePath)))
            ->setServiceProvider($metadata->createEntityDescriptor(file_get_contents($spMetadataFilePath)));
    }
public static function load($idpMetadataFilePath, $spMetadataFilePath)
    {
        $metadata = (new static());

        return $metadata
            ->setIdentityProvider($metadata->createEntityDescriptor(file_get_contents($idpMetadataFilePath)))
            ->setServiceProvider($metadata->createEntityDescriptor(file_get_contents($spMetadataFilePath)));
    }
public static function load ( $ idpMetadataFilePath , $ spMetadataFilePath ) { $ metadata = ( new static ( ) ) ; return $ metadata -> setIdentityProvider ( $ metadata -> createEntityDescriptor ( file_get_contents ( $ idpMetadataFilePath ) ) ) -> setServiceProvider ( $ metadata -> createEntityDescriptor ( file_get_contents ( $ spMetadataFilePath ) ) ) ; }
Create an instance of Metadata

@param string $idpMetadataFilePath
@param string $spMetadataFilePath

@return Metadata
Create an instance of Metadata