Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commitacfeaf6

Browse files
committed
[Security] Fix opcache preload with alias classes
1 parent0d65a49 commitacfeaf6

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

‎src/Symfony/Component/Security/Core/Exception/UserNotFoundException.php‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,4 +93,7 @@ public function __unserialize(array $data): void
9393
parent::__unserialize($parentData);
9494
}
9595
}
96-
class_alias(UserNotFoundException::class, UsernameNotFoundException::class);
96+
97+
if (!class_exists(UsernameNotFoundException::class,false)) {
98+
class_alias(UserNotFoundException::class, UsernameNotFoundException::class);
99+
}

‎src/Symfony/Component/Security/Core/User/InMemoryUserChecker.php‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,4 +67,7 @@ public function checkPostAuth(UserInterface $user)
6767
}
6868
}
6969
}
70-
class_alias(InMemoryUserChecker::class, UserChecker::class);
70+
71+
if (!class_exists(UserChecker::class,false)) {
72+
class_alias(InMemoryUserChecker::class, UserChecker::class);
73+
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp