Skip to content

Add missing PSR Clock compatibility bridge. - #40

Open
hugronaphor wants to merge 1 commit into
RikudouSage:masterfrom
hugronaphor:fix/psr-clock-migration
Open

Add missing PSR Clock compatibility bridge.#40
hugronaphor wants to merge 1 commit into
RikudouSage:masterfrom
hugronaphor:fix/psr-clock-migration

Conversation

@hugronaphor

@hugronaphor hugronaphor commented Mar 24, 2026

Copy link
Copy Markdown

The base library v3.2.1 (PR #37) migrated DynamoCacheItem to require Psr\Clock\ClockInterface, but the bundle was not updated to match.
SymfonyCacheItemConverter still injected Rikudou\Clock\Clock directly, causing a TypeError at runtime.

This PR:

  • Mirrors the base library's approach: accept both RikudouClock|PsrClock
  • Update services.yaml to use ClockHelper factory.

For reference, in #41 addressing additionally deprecated code and fully gets away from RikudouClock

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.

1 participant