HumHub Documentation (unofficial)

ChainProvider
in package
implements CredentialProvider, ResetInterface

FinalYes

Chains several CredentialProvider together.

Credentials are fetched from the first CredentialProvider that does not returns null. The CredentialProvider will be memoized and will be directly called the next times.

Tags
author

Jérémy Derussé jeremy@derusse.com

Table of Contents

Interfaces

CredentialProvider
Interface for providing Credential.
ResetInterface
Provides a way to reset an object to its initial state.

Properties

$lastSuccessfulProvider  : array<string, CredentialProvider|null>
$providers  : iterable<string|int, CredentialProvider>

Methods

__construct()  : mixed
createDefaultChain()  : CredentialProvider
getCredentials()  : Credentials|null
Return a Credential when possible. Return null otherwise.
reset()  : void

Properties

Methods


        
On this page

Search results