remi-san/transaction-manager
Composer 安装命令:
composer require remi-san/transaction-manager
包简介
A simple transaction manager
README 文档
README
A simple transaction manager with a naive implementation.
It provides a common interface to manage transactions.
If you want to make a class transactional, implement the Transactional interface.
Transaction Manager
Two TransactionManager implementations are provided allowing you to manage multiple Transactional classes in the same logic transaction.
SimpleTransactionManageris a naive implementation preventing from beginning a transaction more than once.MultipleTransactionManagerallows you to begin the transaction more than once but only commits ifcommitis called the same number of times asbeginTransaction.
Implementations
Some Transactional implementations are provided:
TransactionalQueuePublisherto publish in an AMQP queue withBurrowin a transactionDoctrineDbalTransactionManagerto deal withDoctrine DBALtransactionsDoctrineEntityManagerto deal withDoctrine ORMtransactionsTransactionalEmitterto emitEventswith thePHP Leaguelib in a transactionTransactionalCommandBusto handleCommandswith thePHP Leaguelib in a transaction
统计信息
- 总下载量: 59.39k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 3
- 推荐数: 3
其他信息
- 授权协议: MIT
- 更新时间: 2016-03-15