W3cubDocs

/Symfony 4.1

DoctrineTransactionMiddlewareFactory

class DoctrineTransactionMiddlewareFactory

Create a Doctrine ORM transaction middleware to be used in a message bus from an entity manager name.

Methods

__construct(ManagerRegistry $managerRegistry)
DoctrineTransactionMiddleware createMiddleware(string $managerName)

Details

__construct(ManagerRegistry $managerRegistry)

Parameters

ManagerRegistry $managerRegistry

DoctrineTransactionMiddleware createMiddleware(string $managerName)

Parameters

string $managerName

Return Value

DoctrineTransactionMiddleware