Skip to content

Fragment handler call set request instead of using listener #8701

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

Conversation

mtotheikle
Copy link

These 2 commits were made in fabpot/contagious-services which was in #7007. I think these changes need to be applied to the 2.2 branch as well since if they are not applied then you can not create a request in an event listener class and have fragments render from a view without getting the following error:

Undefined offset: 0 in .../src/Symfony/Component/HttpKernel/Fragment/FragmentHandler.php

Not sure if this pull request can be applied without 2ffcfb9 and ec1e7ca but from my testing.

@fabpot
Copy link
Member

fabpot commented Aug 9, 2013

These changes cannot be applied to 2.2 as the setRequest won't be called when the request changes.

@fabpot fabpot closed this Aug 9, 2013
@mtotheikle
Copy link
Author

I figured as much but wanted to confirm. It did resolve my issue for the specific use case however I can see where it would break with the request changing.

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.

2 participants