You are here

public function HandlerStack::push in Auth0 Single Sign On 8.2

Push a middleware to the top of the stack.

Parameters

callable $middleware Middleware function:

string $name Name to register for this middleware.:

File

vendor/guzzlehttp/guzzle/src/HandlerStack.php, line 143

Class

HandlerStack
Creates a composed Guzzle handler function by stacking middlewares on top of an HTTP handler function.

Namespace

GuzzleHttp

Code

public function push(callable $middleware, $name = '') {
  $this->stack[] = [
    $middleware,
    $name,
  ];
  $this->cached = null;
}