patchlevel/event-sourcing-bundle

Dotenv

# Format described at https://www.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#connecting-using-a-url
# 
# EVENTSTORE_URL="sqlite:///%kernel.project_dir%/var/data.db"
# EVENTSTORE_URL="mysql://db_user:db_password@127.0.0.1:3306/db_name?serverVersion=5.7"
EVENTSTORE_URL=postgresql://symfony:ChangeMe@127.0.0.1:5432/app?serverVersion=13&charset=utf8

Generated files

config/packages/dev/patchlevel_event_sourcing.yaml

patchlevel_event_sourcing:
    watch_server:
        enabled: true

config/packages/patchlevel_event_sourcing.yaml

patchlevel_event_sourcing:
    aggregates_paths: '%kernel.project_dir%/src'
    connection:
        url: '%env(EVENTSTORE_URL)%'