Skip to content
This repository has been archived by the owner. It is now read-only.
[POC] Broadway in symfony2 project.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app
bin
src
web
.gitignore
LICENSE
README.md
composer.json
composer.lock

README.md

This project is archived

test-broadway

[POC] Broadway 0.3.0 in symfony2 (2.3.x) project.

If you want help me, fork and pull request or if you have already a fonctional example using MySQL Db for readmodel over Broadway, contact me.

Note : Use the tag name command_handler in service configuration for all your commande handler. See src/Jb/TestBundle/Ressources/config/service.yml in this repository.

Install

Install vendor

composer install

Init event-store table

Set db connection before execute this command.

app/console broadway:event-store:schema:init

The broadway/broadway library is very easy to use. I use only event_store in my first test but the simplicity of implementation of this part is encouraging.

Init ReadModel

For use the Doctrine ReadModel, init schema with this command :

app/console doctrine:migrations:migrate --em=readmodel

Publish asset

app/console assets:install

Use

Login

Go to URL <URL>/login Fill form with user and password present in login page.

Create and update

Open browser and access to this url <URL>/make/<texte> for create a aggregate.

For update, use this url <URL>/update/<UUID>/<texte>

For get the uuid, read in event_store table with MySQL Client.

You can’t perform that action at this time.