From 4651fef116a8ea88b1a964c9b778f4aafc403d00 Mon Sep 17 00:00:00 2001 From: Marko Kaznovac Date: Sat, 2 Dec 2023 23:15:07 +0100 Subject: [PATCH] [SecurityBundle] Fix redeclaration of `InternalSecurity` class when opcache preload is active --- src/Symfony/Bundle/SecurityBundle/Security.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Symfony/Bundle/SecurityBundle/Security.php b/src/Symfony/Bundle/SecurityBundle/Security.php index 300049c498e66..9a3a0fef9e5e9 100644 --- a/src/Symfony/Bundle/SecurityBundle/Security.php +++ b/src/Symfony/Bundle/SecurityBundle/Security.php @@ -30,6 +30,9 @@ use Symfony\Component\Security\Http\SecurityRequestAttributes; use Symfony\Contracts\Service\ServiceProviderInterface; +if (class_exists(InternalSecurity::class, false)) { + return; +} if (class_exists(LegacySecurity::class)) { class_alias(LegacySecurity::class, InternalSecurity::class); } else { pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy