-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
split from broadway/broadway-saga (#1)
* split from broadway/broadway-saga * test with MongoDB and docker compose * new namespace
- Loading branch information
Showing
6 changed files
with
40 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,27 @@ | ||
broadway/broadway-saga | ||
====================== | ||
broadway/saga-state-mongodb | ||
=========================== | ||
|
||
Proof-of-concept component providing saga functionality to your application. | ||
|
||
This component provides saga state and metadata management and a manager that | ||
can be used to wake up and start sagas. | ||
Saga state persistence for [broadway/broadway-saga](https://github.com/broadway/broadway-saga) using MongoDB. | ||
|
||
> Note: this component is highly experimental. | ||
# Installation | ||
|
||
``` | ||
$ composer require broadway/broadway-saga | ||
$ composer require broadway/saga-state-mongodb | ||
``` | ||
|
||
Testing | ||
------- | ||
For testing you need a running MongoDB instance. | ||
To start a local MongoDB you can use the provided [docker-compose.yml](https://docs.docker.com/compose/compose-file/): | ||
|
||
``` | ||
docker-compose up -d | ||
``` | ||
|
||
> Note: to use MongoDB on PHP7 you will also need to install `alcaeus/mongo-php-adapter` | ||
To run the tests: | ||
|
||
``` | ||
./vendor/bin/phpunit | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
version: '3.2' | ||
services: | ||
mongodb: | ||
image: mongo:3 | ||
ports: | ||
- "27017:27017" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters