Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit f57f4d4

Browse filesBrowse files
committed
Fix redeclaration of InternalSecurity class when opcache preload is active
1 parent b33e6f8 commit f57f4d4
Copy full SHA for f57f4d4

File tree

1 file changed

+11
-10
lines changed
Filter options

1 file changed

+11
-10
lines changed

‎src/Symfony/Bundle/SecurityBundle/Security.php

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/SecurityBundle/Security.php
+11-10Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -30,16 +30,17 @@
3030
use Symfony\Component\Security\Http\SecurityRequestAttributes;
3131
use Symfony\Contracts\Service\ServiceProviderInterface;
3232

33-
if (!class_exists(InternalSecurity::class, false)) {
34-
if (class_exists(LegacySecurity::class)) {
35-
class_alias(LegacySecurity::class, InternalSecurity::class);
36-
} else {
37-
/**
38-
* @internal
39-
*/
40-
class InternalSecurity
41-
{
42-
}
33+
if (class_exists(InternalSecurity::class, false)) {
34+
return;
35+
}
36+
if (class_exists(LegacySecurity::class)) {
37+
class_alias(LegacySecurity::class, InternalSecurity::class);
38+
} else {
39+
/**
40+
* @internal
41+
*/
42+
class InternalSecurity
43+
{
4344
}
4445
}
4546

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.