We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
InternalSecurity
1 parent b6ae3aa commit 855dbe1Copy full SHA for 855dbe1
src/Symfony/Bundle/SecurityBundle/Security.php
@@ -30,14 +30,16 @@
30
use Symfony\Component\Security\Http\SecurityRequestAttributes;
31
use Symfony\Contracts\Service\ServiceProviderInterface;
32
33
-if (class_exists(LegacySecurity::class)) {
34
- class_alias(LegacySecurity::class, InternalSecurity::class);
35
-} else {
36
- /**
37
- * @internal
38
- */
39
- class InternalSecurity
40
- {
+if(!class_exists(InternalSecurity::class, false)) {
+ if (class_exists(LegacySecurity::class)) {
+ class_alias(LegacySecurity::class, InternalSecurity::class);
+ } else {
+ /**
+ * @internal
+ */
+ class InternalSecurity
41
+ {
42
+ }
43
}
44
45
0 commit comments