Documentation

AbstractMiddleware
in package
implements MiddlewareInterface

AbstractYes

Base class for HTTP client middleware

Table of Contents

Interfaces

MiddlewareInterface
Interface for HTTP client middleware

Properties

$config  : array<string, mixed>

Methods

__construct()  : mixed
configure()  : void
Set configuration for the middleware
getConfig()  : mixed
Get a configuration value
getDefaultConfig()  : array<string, mixed>
Get default configuration for the middleware

Properties

Methods

__construct()

public __construct([array<string, mixed> $config = [] ]) : mixed
Parameters
$config : array<string, mixed> = []

configure()

Set configuration for the middleware

public configure(array<string|int, mixed> $config) : void
Parameters
$config : array<string|int, mixed>
Tags
inheritDoc

getConfig()

Get a configuration value

protected getConfig(string $key[, mixed $default = null ]) : mixed
Parameters
$key : string
$default : mixed = null

getDefaultConfig()

Get default configuration for the middleware

protected getDefaultConfig() : array<string, mixed>
Return values
array<string, mixed>

        
On this page

Search results