Skip to content

jaspernbrouwer/DoctrineDBALBridge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DoctrineDBALBridge

A bridge for using SimpleBus with Doctrine DBAL.

By Jasper N. Brouwer

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

  1. Set up a command bus:
$commandBus = ...;
  1. Set up a Doctrine DBAL connection:
$connection = ...;
  1. Set up the WrapsMessageHandlingInTransaction middleware:
use JNB\DoctrineDBALBridge\MessageBus\WrapsMessageHandlingInTransaction;

$transactionalMiddleware = new WrapsMessageHandlingInTransaction($connection);
  1. Add the middleware to the command bus:
$commandBus->addMiddleware($transactionalMiddleware);

About

Bridge for using SimpleBus with Doctrine DBAL

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages