Add consistency with request type checking

This commit is contained in:
blanchonvincent 2014-11-16 14:59:02 +01:00 committed by Fabien Potencier
parent 679911ca82
commit 1852f85947

View File

@ -47,7 +47,7 @@ class SaveSessionListener implements EventSubscriberInterface
{ {
public function onKernelResponse(FilterResponseEvent $event) public function onKernelResponse(FilterResponseEvent $event)
{ {
if (HttpKernelInterface::MASTER_REQUEST !== $event->getRequestType()) { if (!$event->isMasterRequest()) {
return; return;
} }