Skip to content

Commit 68b9d3c

Browse files
committed
[Security] Fix preload warning in AuthorizationChecker
1 parent 4abdd49 commit 68b9d3c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Authorization/AuthorizationChecker.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@
1717
use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface;
1818
use Symfony\Component\Security\Core\User\UserInterface;
1919

20+
// Help opcache.preload discover always-needed symbols
21+
class_exists(AbstractToken::class);
22+
class_exists(OfflineTokenInterface::class);
23+
2024
/**
2125
* AuthorizationChecker is the main authorization point of the Security component.
2226
*

0 commit comments

Comments
 (0)