From 3ab41e5bc0d33bc926529f906f2077e87f85c167 Mon Sep 17 00:00:00 2001 From: othillo Date: Mon, 11 Dec 2017 13:51:19 +0100 Subject: [PATCH] recipe for broadway/event-store-mongodb --- .../packages/broadway_event_store_mongodb.yaml | 17 +++++++++++++++++ broadway/event-store-mongodb/0.2/manifest.json | 9 +++++++++ 2 files changed, 26 insertions(+) create mode 100644 broadway/event-store-mongodb/0.2/config/packages/broadway_event_store_mongodb.yaml create mode 100644 broadway/event-store-mongodb/0.2/manifest.json diff --git a/broadway/event-store-mongodb/0.2/config/packages/broadway_event_store_mongodb.yaml b/broadway/event-store-mongodb/0.2/config/packages/broadway_event_store_mongodb.yaml new file mode 100644 index 00000000..7ef7aae0 --- /dev/null +++ b/broadway/event-store-mongodb/0.2/config/packages/broadway_event_store_mongodb.yaml @@ -0,0 +1,17 @@ +broadway: + event_store: broadway.event_store.mongodb + +services: + broadway.event_store.mongodb_client: + class: MongoDB\Client + arguments: ['%mongodb_uri%'] + + broadway.event_store.mongodb_collection: + class: MongoDB\Collection + factory: ['@broadway.event_store.mongodb_client', selectCollection] + arguments: ['%mongodb_database%', 'events'] + + broadway.event_store.mongodb: + class: Broadway\EventStore\MongoDB\MongoDBEventStore + public: true + arguments: ['@broadway.event_store.mongodb_collection', '@broadway.serializer.payload', '@broadway.serializer.metadata'] diff --git a/broadway/event-store-mongodb/0.2/manifest.json b/broadway/event-store-mongodb/0.2/manifest.json new file mode 100644 index 00000000..4b60a613 --- /dev/null +++ b/broadway/event-store-mongodb/0.2/manifest.json @@ -0,0 +1,9 @@ +{ + "copy-from-recipe": { + "config/": "%CONFIG_DIR%/" + }, + "container": { + "mongodb_uri": "mongodb://127.0.0.1/", + "mongodb_database": "default" + } +}