Skip to content

Commit

Permalink
[HttpFoundation][HttpKernel] Add more preload always-needed symbols
Browse files Browse the repository at this point in the history
  • Loading branch information
fancyweb committed Apr 30, 2020
1 parent 71b3912 commit 636a8bd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Symfony/Component/HttpFoundation/Request.php
Expand Up @@ -20,6 +20,7 @@ class_exists(AcceptHeader::class);
class_exists(FileBag::class);
class_exists(HeaderBag::class);
class_exists(HeaderUtils::class);
class_exists(InputBag::class);
class_exists(ParameterBag::class);
class_exists(ServerBag::class);

Expand Down
3 changes: 3 additions & 0 deletions src/Symfony/Component/HttpKernel/Kernel.php
Expand Up @@ -39,6 +39,9 @@
use Symfony\Component\HttpKernel\DependencyInjection\AddAnnotatedClassesToCachePass;
use Symfony\Component\HttpKernel\DependencyInjection\MergeExtensionConfigurationPass;

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

/**
* The Kernel is the heart of the Symfony system.
*
Expand Down

0 comments on commit 636a8bd

Please sign in to comment.