landingi / event-store-bundle
Landingi event store bundle implementation
Installs: 46 111
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=8.1
- ext-json: *
- doctrine/dbal: ^2.0|^3.0
- symfony/framework-bundle: ^6.0
- symfony/http-client: ^6.0
- symfony/uid: ^6.0
Requires (Dev)
- landingi/php-coding-standards: ^1.0
- phpunit/phpunit: ^9.5
This package is auto-updated.
Last update: 2025-01-29 08:48:16 UTC
README
Landingi Event Store Implementation
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
- 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]