We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c77a268 commit aab7984Copy full SHA for aab7984
EventListener/AbstractSessionListener.php
@@ -55,12 +55,8 @@ public function onKernelRequest(GetResponseEvent $event)
55
56
$session = null;
57
$request = $event->getRequest();
58
- if ($request->hasSession()) {
59
- // no-op
60
- } elseif (method_exists($request, 'setSessionFactory')) {
+ if (!$request->hasSession()) {
61
$request->setSessionFactory(function () { return $this->getSession(); });
62
- } elseif ($session = $this->getSession()) {
63
- $request->setSession($session);
64
}
65
66
$session = $session ?? ($this->container && $this->container->has('initialized_session') ? $this->container->get('initialized_session') : null);
0 commit comments