-
Notifications
You must be signed in to change notification settings - Fork 84
Add SessionListener::onFinishRequest method to be inline with Symfony 3.4.12 #466
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
Wouldn't it be easier to extend |
@XWB That wouldn't prevent the original Symfony event listener to set the response to private, one already extending the abstract listener. |
I don't think this would reduce the risk of something like this happening. Quite the opposite, I think it could even cause potential errors to remain undiscovered. |
Well it can check which methods |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tests need to be fixed :)
@@ -47,6 +47,28 @@ public function testOnKernelRequestRemainsUntouched() | |||
$listener->onKernelRequest($event); | |||
} | |||
|
|||
public function testOnFinishRequestRemainsUntouched() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The test should be skipped if the method does not exist in the core session listener. See https://travis-ci.org/FriendsOfSymfony/FOSHttpCacheBundle/jobs/396800434
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Toflar Done, however, PHP 5.4 and 5.6 builds still fail due to OOM errors.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I changed the lowest build to 2.8.0 in other projects, to reduce the possibility space. Could be done here too. Github doey not allow me to merge on the phone when tests fail. @ddeboer could your merge this and tag a patch release? Otherwise i can try to do it tonight. |
merged in #472 |
Fixes #465
Same issue is probably happening on master, so needs to be forward ported.