Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow serialization groups to be accessible within event subscriber callbacks. #84

Closed
craigmarvelley opened this issue Apr 25, 2013 · 3 comments

Comments

@craigmarvelley
Copy link

I'm using event subscribers to add additional data post-serialize. I'd like to only add certain properties if a particular exclusion strategy group is active, but can't see a way to access that information from within the callback. Assuming I haven't missed something, would it be possible to add this functionality, perhaps by making it available from the event? I'd make a PR if so.

@alex88
Copy link

alex88 commented May 14, 2013

👍

@fieg
Copy link

fieg commented Jan 21, 2014

+1

It's possible to access the GroupsExclusionStrategy with $event->getContext()->getExclusionStrategy(), but the groups property is protected and not exposed via a public method.

Also relates to #197 and #129 if you ask me.

@goetas
Copy link
Collaborator

goetas commented Apr 24, 2017

see #554

@goetas goetas closed this as completed Apr 24, 2017
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

No branches or pull requests

4 participants