PHP Class Newscoop\User\UserManager

Inheritance: implements Symfony\Component\Security\Core\User\UserProviderInterface
Show file Open project: sourcefabric/newscoop

Public Methods

Method 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 method

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

loadUserByUsername() public method

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

refreshUser() public method

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

supportsClass() public method

Decide if privded class is supported
public supportsClass ( string $class ) : boolean
$class string
return boolean