Landingi Event Store Implementation
- php >= 7.4
- Doctrine 2.0 || 3.0
- Symfony >= 5.2
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']]
- To
config/packages
addlandingi_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
- To
config/bundles.php
add:
Landingi\EventStoreBundle\LandingiEventStoreBundle::class => ['all' => true]