Skip to content

Adapt to hydrator 2 - #337

Merged
DavidBadura merged 1 commit into
4.0.xfrom
adapt-hydrator-2
Oct 3, 2026
Merged

DavidBadura merged 1 commit into
4.0.xfrom
adapt-hydrator-2

Conversation

@DavidBadura

Copy link
Copy Markdown
Member

event-sourcing 4.0.x-dev now requires hydrator ^2.0.2, which made composer install fail for the whole 4.0.x branch.

The normalizers implement the new $context argument, ExtensionDoctrineCipherKeyStore is replaced by the renamed DoctrineCipherKeyStore and the removed UpcasterChain is gone. Upcasters now implement the hydrator Upcaster interface and are collected into an UpcastExtension (beforeTransform stage), the docs are updated accordingly.

While at it I fixed the namespace of the DummyExtension and DummyGuesser fixtures, they were never autoloaded so testHydrator only passed depending on test order.

event-sourcing 4.0.x now requires hydrator 2, so the bundle could no
longer be installed. The normalizers get the new context argument, the
renamed DoctrineCipherKeyStore is used and upcasters are now hydrator
upcasters collected into an UpcastExtension. Also fixes the namespace of
two test fixtures that were never autoloaded.
@DavidBadura DavidBadura added this to the 4.0.0 milestone Oct 3, 2026
@DavidBadura
DavidBadura merged commit 96dad0d into 4.0.x Oct 3, 2026
23 checks passed
@DavidBadura
DavidBadura deleted the adapt-hydrator-2 branch October 3, 2026 09:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants