Skip to content

Commit c9c5eb5

Browse files
Merge branch '4.4' into 5.0
* 4.4: [DI] Fix CheckTypeDeclarationPass [Security/Http] don't require the session to be started when tracking its id [DI] fix preloading script generation
2 parents 154ad6c + 30cd781 commit c9c5eb5

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

Authentication/AuthenticationProviderManager.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@
2121
use Symfony\Component\Security\Core\Exception\ProviderNotFoundException;
2222
use Symfony\Contracts\EventDispatcher\EventDispatcherInterface;
2323

24+
// Help opcache.preload discover always-needed symbols
25+
class_exists(AuthenticationEvents::class);
26+
class_exists(AuthenticationFailureEvent::class);
27+
class_exists(AuthenticationSuccessEvent::class);
28+
2429
/**
2530
* AuthenticationProviderManager uses a list of AuthenticationProviderInterface
2631
* instances to authenticate a Token.

Authorization/ExpressionLanguage.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414
use Psr\Cache\CacheItemPoolInterface;
1515
use Symfony\Component\ExpressionLanguage\ExpressionLanguage as BaseExpressionLanguage;
1616

17+
// Help opcache.preload discover always-needed symbols
18+
class_exists(ExpressionLanguageProvider::class);
19+
1720
if (!class_exists(BaseExpressionLanguage::class)) {
1821
throw new \LogicException(sprintf('The "%s" class requires the "ExpressionLanguage" component. Try running "composer require symfony/expression-language".', ExpressionLanguage::class));
1922
} else {

0 commit comments

Comments
 (0)