Documentation

SimplePipelineProvider
in package
implements PipelineProvider

Table of Contents

Interfaces

PipelineProvider
Provide `Pipeline` of specific type of `Interceptor`.

Properties

$cache  : array<string|int, mixed>
$interceptors  : iterable<string|int, mixed>

Methods

__construct()  : mixed
getPipeline()  : Pipeline<T, mixed>
withPrependedInterceptors()  : self
Create a new provider with additional interceptors prepended.

Properties

Methods

__construct()

public __construct([array<string|int, Interceptor$interceptors = [] ]) : mixed
Parameters
$interceptors : array<string|int, Interceptor> = []

getPipeline()

public getPipeline(string $interceptorClass) : Pipeline<T, mixed>
Parameters
$interceptorClass : string

Only interceptors of this type will be returned in pipeline.

Return values
Pipeline<T, mixed>

withPrependedInterceptors()

Create a new provider with additional interceptors prepended.

public withPrependedInterceptors(array<int, Interceptor$interceptors) : self
Parameters
$interceptors : array<int, Interceptor>

Interceptors to prepend before existing ones.

Return values
self

        
On this page

Search results