Skip to content

Commit dbd33be

Browse files
minor [symfony#14292] UserProvider::supportsClass
symfony/maker-bundle#532
1 parent bd1b7f9 commit dbd33be

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
@@ -413,7 +413,7 @@ command will generate a nice skeleton to get you started::
413413
*/
414414
public function supportsClass($class)
415415
{
416-
return User::class === $class;
416+
return User::class === $class || is_subclass_of($class, <?= $user_short_name ?>::class;
417417
}
418418
}
419419

0 commit comments

Comments
 (0)