class TraceableMiddleware implements MiddlewareInterface

Collects some data about a middleware.

Methods

__construct(Stopwatch $stopwatch, string $busName, string $eventCategory = 'messenger.middleware')

No description

handle(Envelope $envelope, StackInterface $stack)

No description

Details

__construct(Stopwatch $stopwatch, string $busName, string $eventCategory = 'messenger.middleware')

Parameters

Stopwatch $stopwatch
string $busName
string $eventCategory

Envelope handle(Envelope $envelope, StackInterface $stack)

Parameters

Envelope $envelope
StackInterface $stack

Return Value

Envelope