8000 bug #41486 [HttpKernel] Fix sessionListener when factory is injected … · symfony/symfony@e2d1cb1 · GitHub
[go: up one dir, main page]

Skip to content

Commit e2d1cb1

Browse files
bug #41486 [HttpKernel] Fix sessionListener when factory is injected without session (jderusse)
This PR was merged into the 5.4 branch. Discussion ---------- [HttpKernel] Fix sessionListener when factory is injected without session | Q | A | ------------- | --- | Branch? | 5.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | - | License | MIT | Doc PR | - Commits ------- b7e9194 Fix sessionListener when factory is injected without session
2 parents 7714648 + b7e9194 commit e2d1cb1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/HttpKernel/EventListener/SessionListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public function onKernelRequest(RequestEvent $event)
3838
{
3939
parent::onKernelRequest($event);
4040

41-
if (!$event->isMainRequest() || !$this->container->has('session')) {
41+
if (!$event->isMainRequest() || (!$this->container->has('session') && !$this->container->has('session_factory'))) {
4242
return;
4343
}
4444

0 commit comments

Comments
 (0)
0