tiagobrito/dynamodb-message-repository

DynamoDb Message Repository for EventSauce

dev-master 2020-01-13 10:20 UTC

This package is auto-updated.

Last update: 2024-10-13 21:28:31 UTC


README

This library is an implementation of a DynamoDB Repository for PHP EventSauce.

This implementation as all the features similar to Doctrine Message Repository. (official supported by EventSauce) but for AWS DynamoDB.

Usage:

<?php

namespace App\Repository;

use Brito\DynamoDbMessageRepository;

class MyCustomRepository extends DynamoDbMessageRepository {

}

Register your Repository (Symfony)

    App\Repository\MyCustomRepository:
        arguments:
            - '@aws.dynamodb'
            - '@EventSauce\EventSourcing\Serialization\ConstructingMessageSerializer'
            - 'event-source-table-name'

Tests

$ cd tests && docker-compose up

$ phpunit tests/