diff --git a/composer.json b/composer.json index ca12521d..55d3dd3b 100644 --- a/composer.json +++ b/composer.json @@ -19,7 +19,7 @@ ], "require": { "php": "~8.2.0 || ~8.3.0 || ~8.4.0", - "patchlevel/event-sourcing": "^3.12.0", + "patchlevel/event-sourcing": "^3.13.0", "symfony/cache": "^6.4.0|^7.0.0", "symfony/config": "^6.4.0|^7.0.0", "symfony/console": "^6.4.1|^7.0.1", diff --git a/composer.lock b/composer.lock index 4bf8d0fb..d707bf8f 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "5b0e3b3687501c77865066cc74d3cac9", + "content-hash": "1b98531e8c544fb9d7d9edf5058f30d4", "packages": [ { "name": "brick/math", @@ -416,16 +416,16 @@ }, { "name": "patchlevel/event-sourcing", - "version": "3.12.0", + "version": "3.13.0", "source": { "type": "git", "url": "https://github.com/patchlevel/event-sourcing.git", - "reference": "6f641dbd6bdbb25b9232ca5072edb5b489683bef" + "reference": "29f6737a44a13fc7885b55d6148f1f099fa9a0af" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/patchlevel/event-sourcing/zipball/6f641dbd6bdbb25b9232ca5072edb5b489683bef", - "reference": "6f641dbd6bdbb25b9232ca5072edb5b489683bef", + "url": "https://api.github.com/repos/patchlevel/event-sourcing/zipball/29f6737a44a13fc7885b55d6148f1f099fa9a0af", + "reference": "29f6737a44a13fc7885b55d6148f1f099fa9a0af", "shasum": "" }, "require": { @@ -452,7 +452,7 @@ "league/commonmark": "^2.6.1", "patchlevel/coding-standard": "^1.3.0", "patchlevel/event-sourcing-psalm-plugin": "^3.1.0", - "phpat/phpat": "^0.11.3", + "phpat/phpat": "^0.12.0", "phpbench/phpbench": "^1.4.1", "phpstan/phpstan": "^2.1.11", "phpstan/phpstan-phpunit": "^2.0", @@ -494,9 +494,9 @@ ], "support": { "issues": "https://github.com/patchlevel/event-sourcing/issues", - "source": "https://github.com/patchlevel/event-sourcing/tree/3.12.0" + "source": "https://github.com/patchlevel/event-sourcing/tree/3.13.0" }, - "time": "2025-09-03T15:09:01+00:00" + "time": "2025-11-21T11:46:43+00:00" }, { "name": "patchlevel/hydrator", diff --git a/src/DependencyInjection/PatchlevelEventSourcingExtension.php b/src/DependencyInjection/PatchlevelEventSourcingExtension.php index 3321ff59..80979afd 100644 --- a/src/DependencyInjection/PatchlevelEventSourcingExtension.php +++ b/src/DependencyInjection/PatchlevelEventSourcingExtension.php @@ -694,7 +694,12 @@ private function configureStore(array $config, ContainerBuilder $container): voi } if ($config['store']['type'] === 'in_memory') { - $service = $container->register(InMemoryStore::class); + $service = $container->register(InMemoryStore::class) + ->setArguments([ + [], + new Reference(EventRegistry::class), + new Reference('event_sourcing.clock'), + ]); if (($config['store']['options']['kernel_reset'] ?? false) === true) { $service->addTag('kernel.reset', ['method' => 'clear']);