jaspernbrouwer/doctrine-dbal-bridge
最新稳定版本:v2.0.0
Composer 安装命令:
composer require jaspernbrouwer/doctrine-dbal-bridge
包简介
Bridge for using SimpleBus with Doctrine DBAL
README 文档
README
A bridge for using SimpleBus with Doctrine DBAL.
Deprecated
This package is deprecated and has been moved to SimpleBus/DoctrineDBALBridge!
You may still use version 1.x if you're using SimpleBus/CommandBus. But for SimpleBus/MessageBus, please switch to SimpleBus/DoctrineDBALBridge, this package will no longer be maintained.
Versions
Version 1.x is compatible with SimpleBus/CommandBus.
Version 2.x is compatible with SimpleBus/MessageBus.
Installation
Using Composer:
composer require jaspernbrouwer/doctrine-dbal-bridge
Usage
- Set up a command bus:
$commandBus = ...;
- Set up a Doctrine DBAL connection:
$connection = ...;
- Set up the WrapsMessageHandlingInTransaction middleware:
use JNB\DoctrineDBALBridge\MessageBus\WrapsMessageHandlingInTransaction; $transactionalMiddleware = new WrapsMessageHandlingInTransaction($connection);
- Add the middleware to the command bus:
$commandBus->addMiddleware($transactionalMiddleware);
统计信息
- 总下载量: 63
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2014-12-23