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.
2 parents e89657d + 40a4b07 commit 46af71aCopy full SHA for 46af71a
EventListener/AbstractSessionListener.php
@@ -58,12 +58,8 @@ public function onKernelRequest(RequestEvent $event)
58
59
$session = null;
60
$request = $event->getRequest();
61
- if ($request->hasSession()) {
62
- // no-op
63
- } elseif (method_exists($request, 'setSessionFactory')) {
+ if (!$request->hasSession()) {
64
$request->setSessionFactory(function () { return $this->getSession(); });
65
- } elseif ($session = $this->getSession()) {
66
- $request->setSession($session);
67
}
68
69
$session = $session ?? ($this->container && $this->container->has('initialized_session') ? $this->container->get('initialized_session') : null);
0 commit comments