class CredentialsWrapperMiddleware implements MiddlewareInterface (View source)

Middleware which adds a CredentialsWrapper object to the call options.

Methods

__construct(callable $nextHandler, CredentialsWrapper $credentialsWrapper)

No description

__invoke(Call $call, array $options)

Modify or observe the API call request and response.

Details

__construct(callable $nextHandler, CredentialsWrapper $credentialsWrapper)

No description

Parameters

callable $nextHandler
CredentialsWrapper $credentialsWrapper

PromiseInterface|ClientStream|ServerStream|BidiStream __invoke(Call $call, array $options)

Modify or observe the API call request and response.

The returned value must include the result of the next MiddlewareInterface invocation in the chain.

Parameters

Call $call
array $options

Return Value

PromiseInterface|ClientStream|ServerStream|BidiStream