Skip to content

Commit c3591bf

Browse files
bug #61830 [Security] Fix preload warning in AuthorizationChecker (MatTheCat)
This PR was merged into the 7.3 branch. Discussion ---------- [Security] Fix preload warning in `AuthorizationChecker` | Q | A | ------------- | --- | Branch? | 7.3 | Bug fix? | yes | New feature? | no | Deprecations? | no | Issues | Fix #61779 | License | MIT Commits ------- ff13884 [Security] Fix preload warning in `AuthorizationChecker`
2 parents 923cb81 + ff13884 commit c3591bf

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Symfony/Component/Security/Core/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)