Skip to content

Commit aab7984

Browse files
committed
Remove Symfony 3 compatibility code.
1 parent c77a268 commit aab7984

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

EventListener/AbstractSessionListener.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,8 @@ public function onKernelRequest(GetResponseEvent $event)
5555

5656
$session = null;
5757
$request = $event->getRequest();
58-
if ($request->hasSession()) {
59-
// no-op
60-
} elseif (method_exists($request, 'setSessionFactory')) {
58+
if (!$request->hasSession()) {
6159
$request->setSessionFactory(function () { return $this->getSession(); });
62-
} elseif ($session = $this->getSession()) {
63-
$request->setSession($session);
6460
}
6561

6662
$session = $session ?? ($this->container && $this->container->has('initialized_session') ? $this->container->get('initialized_session') : null);

0 commit comments

Comments
 (0)