eventsauce / doctrine-message-repository
Doctrine Message Repository for EventSauce
Fund package maintenance!
frankdejonge
Installs: 154 673
Dependents: 0
Suggesters: 1
Security: 0
Stars: 16
Watchers: 3
Forks: 9
Open Issues: 0
Requires
- php: ^7.3.0 || ^8.0.0
- ext-json: *
- doctrine/dbal: ^2.12.1
- eventsauce/eventsauce: ^0.7.0 || ^0.8.0
- ramsey/uuid: ^3.6 || ^4.0
Requires (Dev)
- phpunit/phpunit: ^8.5 || ^9
- vimeo/psalm: ^4.4
README
⚠️ This repository is abandoned in favor of the newer
eventsauce/message-repository-for-doctrine
library.
use Doctrine\DBAL\Connection; use EventSauce\DoctrineMessageRepository\DoctrineMessageRepository; use EventSauce\EventSourcing\Serialization\MessageSerializer; /** @var Connection $doctrineConnection */ $doctrineConnection = setup_doctrine_connection(); /** @var MessageSerializer $messageSerializer */ $messageSerializer = setup_message_serializer(); $messageRepository = new DoctrineMessageRepository( $doctrineConnection, $messageSerializer, 'your_table_name', );
Next step: Use it when bootstrapping your aggregate root repository
For the schema used for this repository, see: