class StackMiddleware implements MiddlewareInterface, StackInterface

Methods

__construct(Iterator $middlewareIterator = null)

No description

next()

Returns the next middleware to process a message.

handle(Envelope $envelope, StackInterface $stack)

No description

Details

__construct(Iterator $middlewareIterator = null)

Parameters

Iterator $middlewareIterator

MiddlewareInterface next()

Returns the next middleware to process a message.

Return Value

MiddlewareInterface

Envelope handle(Envelope $envelope, StackInterface $stack)

Parameters

Envelope $envelope
StackInterface $stack

Return Value

Envelope