Message Repository for Doctrine DBAL 2
composer require eventsauce/message-repository-for-doctrine-v2
use EventSauce\MessageRepository\DoctrineV2MessageRepository\DoctrineUuidV4MessageRepository;
use EventSauce\MessageRepository\TableSchema\DefaultTableSchema;
use EventSauce\UuidEncoding\BinaryUuidEncoder;
$messageRepository = new DoctrineUuidV4MessageRepository(
connection: $doctrineDbalConnection,
tableName: $tableName,
serializer: $eventSauceMessageSerializer,
tableSchema: new DefaultTableSchema(), // optional
uuidEncoder: new BinaryUuidEncoder(), // optional
);