Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bd72428

Browse files
Update src/Symfony/Bridge/Doctrine/Middleware/IdleConnection/Listener.php
Co-authored-by: Nicolas Grekas <[email protected]>
1 parent a63ef76 commit bd72428

File tree

1 file changed

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

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ public function __construct(
3030

3131
public function onKernelRequest(RequestEvent $event): void
3232
{
33-
if (HttpKernelInterface::SUB_REQUEST === $event->getRequestType()) {
34-
// skip subrequests
33+
if (HttpKernelInterface::MAIN_REQUEST !== $event->getRequestType()) {
34+
3535
return;
3636
}
3737
$timestamp = time();

0 commit comments

Comments
 (0)