add patchlevel event-sourcing 2.0 receipe (#1421)

This commit is contained in:
David Badura
2022-12-17 11:42:36 +01:00
committed by GitHub
parent df61749834
commit 81fc7648ad
3 changed files with 23 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
patchlevel_event_sourcing:
watch_server:
enabled: true

View File

@@ -0,0 +1,5 @@
patchlevel_event_sourcing:
aggregates: '%kernel.project_dir%/src'
events: '%kernel.project_dir%/src'
connection:
url: '%env(EVENTSTORE_URL)%'

View File

@@ -0,0 +1,15 @@
{
"bundles": {
"Patchlevel\\EventSourcingBundle\\PatchlevelEventSourcingBundle": ["all"]
},
"copy-from-recipe": {
"config/": "%CONFIG_DIR%/"
},
"env": {
"#1": "Format described at https://www.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#connecting-using-a-url",
"#3": "",
"#4": "EVENTSTORE_URL=\"sqlite:///%kernel.project_dir%/var/data.db\"",
"#5": "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"
}
}