Documentation

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

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|OAuth2Interface

getRequestFactory()

public getRequestFactory() : RequestFactoryInterface
Tags
codeCoverageIgnore
Return values
RequestFactoryInterface

getStreamFactory()

public getStreamFactory() : StreamFactoryInterface
Tags
codeCoverageIgnore
Return values
StreamFactoryInterface

getUriFactory()

public getUriFactory() : UriFactoryInterface
Tags
codeCoverageIgnore
Return values
UriFactoryInterface

setLogger()

public setLogger(LoggerInterface $logger) : static
Parameters
$logger : LoggerInterface
Tags
codeCoverageIgnore
Return values
static

        
On this page

Search results