Skip to content

Commit

Permalink
[DI] fix preloading script generation
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-grekas committed Mar 17, 2020
1 parent a49d799 commit 32596f3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Firewall/AnonymousAuthenticationListener.php
Expand Up @@ -19,6 +19,9 @@
use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface;
use Symfony\Component\Security\Core\Exception\AuthenticationException;

// Help opcache.preload discover always-needed symbols
class_exists(AnonymousToken::class);

/**
* AnonymousAuthenticationListener automatically adds a Token if none is
* already present.
Expand Down
3 changes: 3 additions & 0 deletions Firewall/LegacyListenerTrait.php
Expand Up @@ -15,6 +15,9 @@
use Symfony\Component\HttpKernel\Event\GetResponseEvent;
use Symfony\Component\HttpKernel\Event\RequestEvent;

// Help opcache.preload discover always-needed symbols
class_exists(RequestEvent::class);

/**
* @deprecated
*
Expand Down

0 comments on commit 32596f3

Please sign in to comment.