diff --git a/prooph/event-store-bus-bridge/3.1/config/packages/prooph_event_store_bus_bridge.yaml b/prooph/event-store-bus-bridge/3.1/config/packages/prooph_event_store_bus_bridge.yaml new file mode 100644 index 000000000..ed23c389f --- /dev/null +++ b/prooph/event-store-bus-bridge/3.1/config/packages/prooph_event_store_bus_bridge.yaml @@ -0,0 +1,15 @@ +services: + _defaults: + public: false + + Prooph\EventStoreBusBridge\EventPublisher: + arguments: + - '@prooph_service_bus.default_event_bus' + tags: + - { name: 'prooph_event_store.default.plugin' } + + Prooph\EventStoreBusBridge\TransactionManager: + arguments: + - '@app.event_store.default' + tags: + - { name: 'prooph_service_bus.default_command_bus.plugin' } diff --git a/prooph/event-store-bus-bridge/3.1/manifest.json b/prooph/event-store-bus-bridge/3.1/manifest.json new file mode 100644 index 000000000..e164c6e63 --- /dev/null +++ b/prooph/event-store-bus-bridge/3.1/manifest.json @@ -0,0 +1,5 @@ +{ + "copy-from-recipe": { + "config/": "%CONFIG_DIR%/" + } +} diff --git a/prooph/event-store-symfony-bundle/0.4/config/packages/prooph_event_store.yaml b/prooph/event-store-symfony-bundle/0.4/config/packages/prooph_event_store.yaml new file mode 100644 index 000000000..7e3176266 --- /dev/null +++ b/prooph/event-store-symfony-bundle/0.4/config/packages/prooph_event_store.yaml @@ -0,0 +1,10 @@ +prooph_event_store: + stores: + default: + event_store: 'app.event_store.default' + +services: + _defaults: + public: false + + Prooph\EventSourcing\EventStoreIntegration\AggregateTranslator: ~ diff --git a/prooph/event-store-symfony-bundle/0.4/manifest.json b/prooph/event-store-symfony-bundle/0.4/manifest.json new file mode 100644 index 000000000..9dc52b312 --- /dev/null +++ b/prooph/event-store-symfony-bundle/0.4/manifest.json @@ -0,0 +1,9 @@ +{ + "bundles": { + "Prooph\\Bundle\\EventStore\\ProophEventStoreBundle": ["all"] + }, + "copy-from-recipe": { + "config/": "%CONFIG_DIR%/", + "src/": "%SRC_DIR%/" + } +} diff --git a/prooph/event-store-symfony-bundle/0.4/src/Command/CreateEventStreamCommand.php b/prooph/event-store-symfony-bundle/0.4/src/Command/CreateEventStreamCommand.php new file mode 100644 index 000000000..e74bd5ff6 --- /dev/null +++ b/prooph/event-store-symfony-bundle/0.4/src/Command/CreateEventStreamCommand.php @@ -0,0 +1,36 @@ +eventStore = $eventStore; + } + + protected function configure() + { + $this->setName('event-store:event-stream:create') + ->setDescription('Create event_stream.') + ->setHelp('This command creates the event_stream'); + } + + protected function execute(InputInterface $input, OutputInterface $output) + { + $this->eventStore->create(new Stream(new StreamName('event_stream'), new \ArrayIterator([]))); + + $output->writeln('Event stream was created successfully.'); + } +} diff --git a/prooph/pdo-event-store/1.7/config/packages/prooph_pdo_event_store.yaml b/prooph/pdo-event-store/1.7/config/packages/prooph_pdo_event_store.yaml new file mode 100644 index 000000000..fd2480cda --- /dev/null +++ b/prooph/pdo-event-store/1.7/config/packages/prooph_pdo_event_store.yaml @@ -0,0 +1,22 @@ +services: + _defaults: + public: false + + Prooph\EventStore\EventStore: '@app.event_store.default' + + app.event_store.default: + class: Prooph\EventStore\Pdo\MySqlEventStore + arguments: + - '@prooph_event_store.message_factory' + - '@app.event_store.pdo_connection.mysql' + - '@app.event_store.mysql.persistence_strategy' + + app.event_store.pdo_connection.mysql: + class: \PDO + arguments: + - '%env(MYSQL_DSN)%' + - '%env(MYSQL_USER)%' + - '%env(MYSQL_PASSWORD)%' + + app.event_store.mysql.persistence_strategy: + class: Prooph\EventStore\Pdo\PersistenceStrategy\MySqlSingleStreamStrategy diff --git a/prooph/pdo-event-store/1.7/manifest.json b/prooph/pdo-event-store/1.7/manifest.json new file mode 100644 index 000000000..2cf27ba35 --- /dev/null +++ b/prooph/pdo-event-store/1.7/manifest.json @@ -0,0 +1,13 @@ +{ + "copy-from-recipe": { + "config/": "%CONFIG_DIR%/" + }, + "copy-from-package": { + "scripts/": "%CONFIG_DIR%/scripts/" + }, + "env": { + "MYSQL_DSN": "mysql:host=127.0.0.1;dbname=event_streams", + "MYSQL_USER": "user", + "MYSQL_PASSWORD": "password" + } +} diff --git a/prooph/pdo-event-store/1.7/post-install.txt b/prooph/pdo-event-store/1.7/post-install.txt new file mode 100644 index 000000000..d3adb0f42 --- /dev/null +++ b/prooph/pdo-event-store/1.7/post-install.txt @@ -0,0 +1,8 @@ + + MySql Event Store Configuration + + + * Modify your MYSQL_* configuration in .env + + * Create event streams and projections tables using SQL scripts + in %CONFIG_DIR%/scripts/* diff --git a/prooph/service-bus-symfony-bundle/0.6/config/packages/prooph_service_bus.yaml b/prooph/service-bus-symfony-bundle/0.6/config/packages/prooph_service_bus.yaml new file mode 100644 index 000000000..faaa0df42 --- /dev/null +++ b/prooph/service-bus-symfony-bundle/0.6/config/packages/prooph_service_bus.yaml @@ -0,0 +1,13 @@ +prooph_service_bus: + command_buses: + default_command_bus: ~ + event_buses: + default_event_bus: ~ + query_buses: + default_query_bus: ~ + +services: + _defaults: + public: false + + Prooph\ServiceBus\CommandBus: '@prooph_service_bus.default_command_bus' diff --git a/prooph/service-bus-symfony-bundle/0.6/manifest.json b/prooph/service-bus-symfony-bundle/0.6/manifest.json new file mode 100644 index 000000000..f32f1893d --- /dev/null +++ b/prooph/service-bus-symfony-bundle/0.6/manifest.json @@ -0,0 +1,8 @@ +{ + "bundles": { + "Prooph\\Bundle\\ServiceBus\\ProophServiceBusBundle": ["all"] + }, + "copy-from-recipe": { + "config/": "%CONFIG_DIR%/" + } +} diff --git a/prooph/service-bus-symfony-bundle/0.6/post-install.txt b/prooph/service-bus-symfony-bundle/0.6/post-install.txt new file mode 100644 index 000000000..ba6ab952e --- /dev/null +++ b/prooph/service-bus-symfony-bundle/0.6/post-install.txt @@ -0,0 +1,9 @@ + + Service Bus Configuration + + + * Verify and uncomment the configuration in %CONFIG_DIR%/packages/prooph_service_bus.yaml + to register message handlers + + * Dispatch commands by injecting + the Prooph\ServiceBus\CommandBus service into your controllers