W3cubDocs

/Symfony 4.1

DoctrineTransactionMiddleware

class DoctrineTransactionMiddleware implements MiddlewareInterface

Wraps all handlers in a single doctrine transaction.

Methods

__construct(ManagerRegistry $managerRegistry, string|null $entityManagerName)
mixed handle($message, callable $next)

Details

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

Parameters

ManagerRegistry $managerRegistry
string|null $entityManagerName

mixed handle($message, callable $next)

Parameters

$message
callable $next

Return Value

mixed

© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Bridge/Doctrine/Messenger/DoctrineTransactionMiddleware.html