-
Notifications
You must be signed in to change notification settings - Fork 700
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
manually decorate the core JMS handler registry #1873
Conversation
Nice find @xabbuh Just one more test needs to be resolved:
|
This works around the fact that custom handlers are processed in JMSSerializerBundle after Symfony's DecoratorServicePass has been executed (which means that we cannot use proper service decoration). The old code still used to work on Symfony 2.x applications where FOSRestBundle was registered after JMSSerializerBundle. In those cases, custom handlers were processed before the handler registry was replaced by the compiler pass coming from FOSRestBundle. More recent Symfony applications have not been affected by this bug as the compiler pass priority would have ensured the correct order in which the passes would have been executed.
@XWB here we go 🎉 |
All green 🎉 |
This PR was merged into the 2.3-dev branch. Discussion ---------- manually decorate the core JMS handler registry This works around the fact that custom handlers are processed in JMSSerializerBundle after Symfony's DecoratorServicePass has been executed (which means that we cannot use proper service decoration). The old code still used to work on Symfony 2.x applications where FOSRestBundle was registered after JMSSerializerBundle. In those cases, custom handlers were processed before the handler registry was replaced by the compiler pass coming from FOSRestBundle. More recent Symfony applications have not been affected by this bug as the compiler pass priority would have ensured the correct order in which the passes would have been executed. Commits ------- 17c8de8 manually decorate the core JMS handler registry
Does this fix #1851? |
@Tobion yes, updating to 2.3.1 should help |
This works around the fact that custom handlers are processed in
JMSSerializerBundle after Symfony's DecoratorServicePass has been
executed (which means that we cannot use proper service decoration).
The old code still used to work on Symfony 2.x applications where
FOSRestBundle was registered after JMSSerializerBundle. In those cases,
custom handlers were processed before the handler registry was replaced
by the compiler pass coming from FOSRestBundle.
More recent Symfony applications have not been affected by this bug as
the compiler pass priority would have ensured the correct order in which
the passes would have been executed.