class DoctrineTransactionMiddleware implements MiddlewareInterface

Wraps all handlers in a single doctrine transaction.

Methods

__construct(ManagerRegistry $managerRegistry, string $entityManagerName = null)

No description

handle(Envelope $envelope, StackInterface $stack)

No description

Details

__construct(ManagerRegistry $managerRegistry, string $entityManagerName = null)

Parameters

ManagerRegistry $managerRegistry
string $entityManagerName

Envelope handle(Envelope $envelope, StackInterface $stack)

Parameters

Envelope $envelope
StackInterface $stack

Return Value

Envelope