Skip to content

Commit 2b02a0a

Browse files
CharlyPoppinswouterj
authored andcommitted
minor [#14292] UserProvider::supportsClass
symfony/maker-bundle#532
1 parent 57926a0 commit 2b02a0a

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)