OAuthProviderFactory
in package
A simple OAuth provider factory (not sure if that clears the mess...)
Table of Contents
Properties
- $http : ClientInterface
- $logger : LoggerInterface
- $requestFactory : RequestFactoryInterface
- $streamFactory : StreamFactoryInterface
- $uriFactory : UriFactoryInterface
Methods
- __construct() : mixed
- thank you PHP-FIG for absolutely nothing
- getProvider() : OAuthInterface|OAuth1Interface|OAuth2Interface
- invokes a provider instance with the given $options and $storage interfaces
- getRequestFactory() : RequestFactoryInterface
- getStreamFactory() : StreamFactoryInterface
- getUriFactory() : UriFactoryInterface
- setLogger() : static
Properties
$http
protected
ClientInterface
$http
$logger
protected
LoggerInterface
$logger
$requestFactory
protected
RequestFactoryInterface
$requestFactory
$streamFactory
protected
StreamFactoryInterface
$streamFactory
$uriFactory
protected
UriFactoryInterface
$uriFactory
Methods
__construct()
thank you PHP-FIG for absolutely nothing
public
__construct(ClientInterface $http, RequestFactoryInterface $requestFactory, StreamFactoryInterface $streamFactory, UriFactoryInterface $uriFactory[, LoggerInterface $logger = new NullLogger() ]) : mixed
Parameters
- $http : ClientInterface
- $requestFactory : RequestFactoryInterface
- $streamFactory : StreamFactoryInterface
- $uriFactory : UriFactoryInterface
- $logger : LoggerInterface = new NullLogger()
getProvider()
invokes a provider instance with the given $options and $storage interfaces
public
getProvider(string $providerFQN[, SettingsContainerInterface|OAuthOptions $options = new OAuthOptions() ][, OAuthStorageInterface $storage = new MemoryStorage() ]) : OAuthInterface|OAuth1Interface|OAuth2Interface
Parameters
- $providerFQN : string
- $options : SettingsContainerInterface|OAuthOptions = new OAuthOptions()
- $storage : OAuthStorageInterface = new MemoryStorage()
Return values
OAuthInterface|OAuth1Interface|OAuth2InterfacegetRequestFactory()
public
getRequestFactory() : RequestFactoryInterface
Tags
Return values
RequestFactoryInterfacegetStreamFactory()
public
getStreamFactory() : StreamFactoryInterface
Tags
Return values
StreamFactoryInterfacegetUriFactory()
public
getUriFactory() : UriFactoryInterface
Tags
Return values
UriFactoryInterfacesetLogger()
public
setLogger(LoggerInterface $logger) : static
Parameters
- $logger : LoggerInterface