Skip to content

Commit 32596f3

Browse files
[DI] fix preloading script generation
1 parent a49d799 commit 32596f3

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

Firewall/AnonymousAuthenticationListener.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface;
2020
use Symfony\Component\Security\Core\Exception\AuthenticationException;
2121

22+
// Help opcache.preload discover always-needed symbols
23+
class_exists(AnonymousToken::class);
24+
2225
/**
2326
* AnonymousAuthenticationListener automatically adds a Token if none is
2427
* already present.

Firewall/LegacyListenerTrait.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@
1515
use Symfony\Component\HttpKernel\Event\GetResponseEvent;
1616
use Symfony\Component\HttpKernel\Event\RequestEvent;
1717

18+
// Help opcache.preload discover always-needed symbols
19+
class_exists(RequestEvent::class);
20+
1821
/**
1922
* @deprecated
2023
*

0 commit comments

Comments
 (0)