Skip to content

Commit 0f6b3ef

Browse files
[DoctrineBridge] Register idle-connection listener before session listeners since they could use the DB
1 parent 462ab95 commit 0f6b3ef

File tree

1 file changed

+1
-1
lines changed
  • src/Symfony/Bridge/Doctrine/Middleware/IdleConnection

1 file changed

+1
-1
lines changed

src/Symfony/Bridge/Doctrine/Middleware/IdleConnection/Listener.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public function onKernelRequest(RequestEvent $event): void
4949
public static function getSubscribedEvents(): array
5050
{
5151
return [
52-
KernelEvents::REQUEST => 'onKernelRequest',
52+
KernelEvents::REQUEST => ['onKernelRequest', 192], // before session listeners since they could use the DB
5353
];
5454
}
5555
}

0 commit comments

Comments
 (0)