Skip to content

Record that Metadata loads lazily in setono/client - #33

Open
loevgaard wants to merge 1 commit into
2.xfrom
docs/lazy-metadata-adr
Open

loevgaard wants to merge 1 commit into
2.xfrom
docs/lazy-metadata-adr

Conversation

@loevgaard

Copy link
Copy Markdown
Member

This was generated by AI during triage.

Summary

Records the decision from triaging #31: setono/client's Metadata loads lazily through Metadata::lazy() (Setono/client#8), and hasChanged() never loads it. This replaces the bundle's LazyMetadata, which uses Symfony's deprecated LazyGhostTrait. The ADR also records the two rejected alternatives:

  • PHP 8.4's native lazy objects, with the trait on older PHP
  • requiring PHP 8.4
 docs/adr/
   0001-the-current-client-is-the-source-of-truth-for-the-client-id.md
   0002-metadata-tracks-its-own-changes-in-setono-client.md
+  0003-metadata-loads-lazily-in-setono-client.md

Evidence

Docs only. The ADR rests on these checks:

  • Deprecation: on PHP 8.4.20 with symfony/var-exporter 7.4.18, creating a LazyMetadata triggers Since symfony/var-exporter 7.3: The "Symfony\Component\VarExporter\LazyGhostTrait" trait is deprecated, use native lazy objects instead.
  • Symfony 8: symfony/var-exporter v8.0.0 has no LazyGhostTrait.php, and it requires PHP >=8.4.

Merge Danger

Door: two-way

Blast Radius: none

Documentation only. The code changes follow in Setono/client#8 and #31.

Adds ADR-0003, decided while triaging #31.
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