Documentation

WorkerPluginContext
in package

FinalYes

Builder-style configuration context for worker plugins.

Plugins modify this builder in WorkerPluginInterface::configureWorker().

Table of Contents

Properties

$exceptionInterceptor  : ExceptionInterceptorInterface|null
$interceptors  : array<int, Interceptor>
$taskQueue  : string
$workerOptions  : WorkerOptions

Methods

__construct()  : mixed
addInterceptor()  : self
Add an interceptor to the worker pipeline.
getExceptionInterceptor()  : ExceptionInterceptorInterface|null
getInterceptors()  : array<int, Interceptor>
getTaskQueue()  : string
getWorkerOptions()  : WorkerOptions
setExceptionInterceptor()  : self
setInterceptors()  : self
setWorkerOptions()  : self

Properties

Methods

addInterceptor()

Add an interceptor to the worker pipeline.

public addInterceptor(Interceptor $interceptor) : self
Parameters
$interceptor : Interceptor
Return values
self

getInterceptors()

public getInterceptors() : array<int, Interceptor>
Return values
array<int, Interceptor>

setInterceptors()

public setInterceptors(array<int, Interceptor$interceptors) : self
Parameters
$interceptors : array<int, Interceptor>
Return values
self

        
On this page

Search results