landingi/event-store-bundle

Landingi event store bundle implementation

Installs: 37 210

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

Type:symfony-bundle

v2.0.0 2024-01-26 11:53 UTC

This package is auto-updated.

Last update: 2024-04-08 14:01:13 UTC


README

Landingi Event Store Implementation

Build Status License MIT Packagist Version

Requirements

  • php >= 7.4
  • Doctrine 2.0 || 3.0
  • Symfony >= 5.2

Configuration

Event Store

Add to your service.yaml Event Store service definition

landingi.event-store.dbal:
    class: Landingi\EventStoreBundle\EventStore\DbalEventStore
    arguments: ['@doctrine.dbal.default_connection']

Landingi\EventStoreBundle\EventStore:
    class: Landingi\EventStoreBundle\EventStore\ListenerEventStore
    arguments: ['@landingi.event-store.dbal']
    calls:
        - [addListener, ['@your-event-listener-service']]

Bundle auto-configuration

  1. To config/packages add landingi_event_store.yaml with following content
landingi_event_store:
  event_store:
    connection: 'doctrine.dbal.default_connection' # landingi_production DB connection
  auditlog:
    enabled: true                # set to false to disable AuditLogListener
    endpoint: 'http://audit-log' # base URL endpoint for SymfonyHttpAuditLogStore
    client: 'http_client'        # instance of Symfony\Contracts\HttpClient\HttpClientInterface interface
    strict_mode: true            # set to false to ignore StrictAuditLogListener allowed events list
  1. To config/bundles.php add:
Landingi\EventStoreBundle\LandingiEventStoreBundle::class => ['all' => true]