class Guzzle5AuthHandler (View source)

This supports Guzzle 5

Properties

protected $cache
protected $cacheConfig

Methods

__construct(CacheItemPoolInterface $cache = null, array $cacheConfig = [])

No description

attachCredentials(ClientInterface $http, CredentialsLoader $credentials, callable $tokenCallback = null)

No description

attachCredentialsCache(ClientInterface $http, FetchAuthTokenCache $credentials, callable $tokenCallback = null)

No description

attachToken(ClientInterface $http, array $token, array $scopes)

No description

attachKey(ClientInterface $http, $key)

No description

Details

__construct(CacheItemPoolInterface $cache = null, array $cacheConfig = [])

Parameters

CacheItemPoolInterface $cache
array $cacheConfig

attachCredentials(ClientInterface $http, CredentialsLoader $credentials, callable $tokenCallback = null)

Parameters

ClientInterface $http
CredentialsLoader $credentials
callable $tokenCallback

attachCredentialsCache(ClientInterface $http, FetchAuthTokenCache $credentials, callable $tokenCallback = null)

Parameters

ClientInterface $http
FetchAuthTokenCache $credentials
callable $tokenCallback

attachToken(ClientInterface $http, array $token, array $scopes)

Parameters

ClientInterface $http
array $token
array $scopes

attachKey(ClientInterface $http, $key)

Parameters

ClientInterface $http
$key