8000 minor #14304 minor [#14292] UserProvider::supportsClass (Charly) · symfony/symfony-docs@c43d73b · GitHub
[go: up one dir, main page]

Skip to content

Commit c43d73b

Browse files
committed
minor #14304 minor [#14292] UserProvider::supportsClass (Charly)
This PR was submitted for the master branch but it was merged into the 4.4 branch instead. Discussion ---------- minor [#14292] UserProvider::supportsClass symfony/maker-bundle#532 Commits ------- 2b02a0a minor [#14292] UserProvider::supportsClass
2 parents 57926a0 + 2b02a0a commit c43d73b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

security/user_provider.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ command will generate a nice skeleton to get you started::
409409
*/
410410
public function supportsClass($class)
411411
{
412-
return User::class === $class;
412+
return User::class === $class || is_subclass_of($class, User::class);
413413
}
414414
}
415415

0 commit comments

Comments
 (0)
0