Skip to content
This repository was archived by the owner on May 31, 2024. It is now read-only.

Commit 63e8574

Browse files
committed
adapted previous commit for 2.3
1 parent a8f79f9 commit 63e8574

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Http/RememberMe/ResponseListener.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
use Symfony\Component\HttpKernel\Event\FilterResponseEvent;
1515
use Symfony\Component\HttpKernel\KernelEvents;
16+
use Symfony\Component\HttpKernel\HttpKernelInterface;
1617
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
1718

1819
/**
@@ -27,7 +28,7 @@ class ResponseListener implements EventSubscriberInterface
2728
*/
2829
public function onKernelResponse(FilterResponseEvent $event)
2930
{
30-
if (!$event->isMasterRequest()) {
31+
if (HttpKernelInterface::MASTER_REQUEST !== $event->getRequestType()) {
3132
return;
3233
}
3334

Tests/Http/RememberMe/ResponseListenerTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,6 @@ private function getEvent($request, $response, $type = HttpKernelInterface::MAST
102102

103103
$event->expects($this->any())->method('getRequest')->will($this->returnValue($request));
104104
$event->expects($this->any())->method('getRequestType')->will($this->returnValue($type));
105-
$event->expects($this->any())->method('isMasterRequest')->will($this->returnValue($type === HttpKernelInterface::MASTER_REQUEST));
106105
$event->expects($this->any())->method('getResponse')->will($this->returnValue($response));
107106

108107
return $event;

0 commit comments

Comments
 (0)