TraceableMiddleware
in package
implements
MiddlewareInterface
Collects some data about a middleware.
Tags
Table of Contents
Interfaces
Properties
- $busName : string
- $eventCategory : string
- $stopwatch : mixed
Methods
- __construct() : mixed
- handle() : Envelope
Properties
$busName
private
string
$busName
$eventCategory
private
string
$eventCategory
$stopwatch
private
mixed
$stopwatch
Methods
__construct()
public
__construct(Stopwatch $stopwatch, string $busName[, string $eventCategory = 'messenger.middleware' ]) : mixed
Parameters
- $stopwatch : Stopwatch
- $busName : string
- $eventCategory : string = 'messenger.middleware'
handle()
public
handle(Envelope $envelope, StackInterface $stack) : Envelope
Parameters
- $envelope : Envelope
- $stack : StackInterface