This is a test project to implement and test this Symfony Messenger pull request.
- Install dependencies:
composer install
- Create the database (sqlite by default):
bin/console doctrine:database:create
- Migrate database:
bin/console doctrine:database:migrate
Use the app:add-book
command to run tests. The command requires an ID and Name for the book.
- For success: Use a unique ID: `bin/console app:add-book {uniqueId} {some name}
- On success you should see a
VarDump
of theBookCreatedEvent
with the new book's ID.
- On success you should see a
- For failure: Reuse an ID:
bin/console app:add-book 1 foo && bin/console app:add-book 1 foo
- On failure, you should not see the
VarDump
(which is located in the Event Subscriber)
- On failure, you should not see the
The files for the Messenger transaction middleware are in App\Lib\Messenger
.