fix(symfony): allow symfony to use session even if it's not started yet

This commit is contained in:
Younes ENNAJI
2023-12-10 00:57:57 +01:00
parent f8e0445b0d
commit b69dc4e834
+1 -1
View File
@@ -68,7 +68,7 @@ final class SessionBag implements BagInterface
$session = $this->session->getCurrentRequest()->getSession();
}
if (null !== $session && $session->isStarted()) {
if (null !== $session) {
return $this->session = $session;
}