PHP Class Newscoop\User\UserManager

Inheritance: implements Symfony\Component\Security\Core\User\UserProviderInterface
Afficher le fichier Open project: sourcefabric/newscoop

Méthodes publiques

Méthode Description
__construct ( Doctrine\Common\Persistence\ObjectManager $em )
loadUserByUsername ( string $username ) : User Load user by his username
refreshUser ( Symfony\Component\Security\Core\User\UserInterface $user ) : boolean Clear user sensitive data
supportsClass ( string $class ) : boolean Decide if privded class is supported

Method Details

__construct() public méthode

public __construct ( Doctrine\Common\Persistence\ObjectManager $em )
$em Doctrine\Common\Persistence\ObjectManager

loadUserByUsername() public méthode

Load user by his username
public loadUserByUsername ( string $username ) : User
$username string
Résultat Newscoop\Entity\User

refreshUser() public méthode

Clear user sensitive data
public refreshUser ( Symfony\Component\Security\Core\User\UserInterface $user ) : boolean
$user Symfony\Component\Security\Core\User\UserInterface
Résultat boolean

supportsClass() public méthode

Decide if privded class is supported
public supportsClass ( string $class ) : boolean
$class string
Résultat boolean