diff options
Diffstat (limited to 'User/UserProviderInterface.php')
-rw-r--r-- | User/UserProviderInterface.php | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/User/UserProviderInterface.php b/User/UserProviderInterface.php index 4e182ee..926f575 100644 --- a/User/UserProviderInterface.php +++ b/User/UserProviderInterface.php @@ -36,13 +36,22 @@ interface UserProviderInterface * Loads the user for the account interface. * * It is up to the implementation if it decides to reload the user data - * from the database, or if it simply merges the passed User into the + * from the database, or if it simply merges the passed User into the * identity map of an entity manager. * * @throws UnsupportedAccountException if the account is not supported - * @param AccountInterface $user + * @param AccountInterface $account * * @return AccountInterface */ - function loadUserByAccount(AccountInterface $user); + function loadUserByAccount(AccountInterface $account); + + /** + * Whether this provider supports the given user class + * + * @param string $class + * + * @return Boolean + */ + function supportsClass($class); }
\ No newline at end of file |