Allow reading target groups from #[Serialize] - #154
Merged
Merged
Conversation
HypeMC
force-pushed
the
forresponsegroups
branch
from
September 17, 2026 21:17
ba15574 to
8a57ab0
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## 1.x #154 +/- ##
============================================
+ Coverage 97.44% 97.48% +0.04%
- Complexity 508 522 +14
============================================
Files 63 65 +2
Lines 1409 1432 +23
============================================
+ Hits 1373 1396 +23
Misses 36 36
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
HypeMC
force-pushed
the
forresponsegroups
branch
from
September 17, 2026 22:32
8a57ab0 to
d8fc889
Compare
Brajk19
previously approved these changes
Sep 18, 2026
Brajk19
approved these changes
Sep 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary 📝
This PR adds a new
ForResponseGroupstarget that reads serialization groups from Symfony's#[Serialize]attribute.This allows the purge target to reuse the same groups that are already configured for serializing the controller response, instead of having to duplicate them in
ForGroups.For example:
is equivalent to:
This builds on the
#[Serialize]controller attribute introduced in Symfony 8.1.Checklist ✅