PHP Class FOS\UserBundle\Model\UserManager

Author: Johannes M. Schmitt ([email protected])
Inheritance: implements FOS\UserBundle\Model\UserManagerInterface, implements Symfony\Component\Security\Core\User\UserProviderInterface
Afficher le fichier Open project: KnpLabs/KnpUserBundle Class Usage Examples

Protected Properties

Свойство Type Description
$algorithm
$emailCanonicalizer
$encoderFactory
$usernameCanonicalizer

Méthodes publiques

Méthode Description
__construct ( Symfony\Component\Security\Core\Encoder\EncoderFactoryInterface $encoderFactory, string $algorithm, FOS\UserBundle\Util\CanonicalizerInterface $usernameCanonicalizer, FOS\UserBundle\Util\CanonicalizerInterface $emailCanonicalizer ) Constructor.
createUser ( ) : User Returns an empty user instance
findUserByConfirmationToken ( $token )
findUserByEmail ( string $email ) : User Finds a user by email
findUserByUsername ( string $username ) : User Finds a user by username
findUserByUsernameOrEmail ( string $usernameOrEmail ) : User Finds a user either by email, or username
loadUserByAccount ( Symfony\Component\Security\Core\User\AccountInterface $user ) : User Finds a user by account
loadUserByUsername ( string $username ) : Symfony\Component\Security\Core\User\AccountInterface Loads a user by username
supportsClass ( $class ) {@inheritDoc}
updateCanonicalFields ( FOS\UserBundle\Model\UserInterface $user ) {@inheritDoc}
updatePassword ( FOS\UserBundle\Model\UserInterface $user ) {@inheritDoc}

Méthodes protégées

Méthode Description
getEncoder ( FOS\UserBundle\Model\UserInterface $user )

Method Details

__construct() public méthode

Constructor.
public __construct ( Symfony\Component\Security\Core\Encoder\EncoderFactoryInterface $encoderFactory, string $algorithm, FOS\UserBundle\Util\CanonicalizerInterface $usernameCanonicalizer, FOS\UserBundle\Util\CanonicalizerInterface $emailCanonicalizer )
$encoderFactory Symfony\Component\Security\Core\Encoder\EncoderFactoryInterface
$algorithm string
$usernameCanonicalizer FOS\UserBundle\Util\CanonicalizerInterface
$emailCanonicalizer FOS\UserBundle\Util\CanonicalizerInterface

createUser() public méthode

Returns an empty user instance
public createUser ( ) : User
Résultat User

findUserByConfirmationToken() public méthode

public findUserByConfirmationToken ( $token )

findUserByEmail() public méthode

Finds a user by email
public findUserByEmail ( string $email ) : User
$email string
Résultat User

findUserByUsername() public méthode

Finds a user by username
public findUserByUsername ( string $username ) : User
$username string
Résultat User

findUserByUsernameOrEmail() public méthode

Finds a user either by email, or username
public findUserByUsernameOrEmail ( string $usernameOrEmail ) : User
$usernameOrEmail string
Résultat User

getEncoder() protected méthode

protected getEncoder ( FOS\UserBundle\Model\UserInterface $user )
$user FOS\UserBundle\Model\UserInterface

loadUserByAccount() public méthode

It is strongly discouraged to use this method manually as it bypasses all ACL checks.
public loadUserByAccount ( Symfony\Component\Security\Core\User\AccountInterface $user ) : User
$user Symfony\Component\Security\Core\User\AccountInterface
Résultat User

loadUserByUsername() public méthode

It is strongly discouraged to call this method manually as it bypasses all ACL checks.
public loadUserByUsername ( string $username ) : Symfony\Component\Security\Core\User\AccountInterface
$username string
Résultat Symfony\Component\Security\Core\User\AccountInterface

supportsClass() public méthode

{@inheritDoc}
public supportsClass ( $class )

updateCanonicalFields() public méthode

{@inheritDoc}
public updateCanonicalFields ( FOS\UserBundle\Model\UserInterface $user )
$user FOS\UserBundle\Model\UserInterface

updatePassword() public méthode

{@inheritDoc}
public updatePassword ( FOS\UserBundle\Model\UserInterface $user )
$user FOS\UserBundle\Model\UserInterface

Property Details

$algorithm protected_oe property

protected $algorithm

$emailCanonicalizer protected_oe property

protected $emailCanonicalizer

$encoderFactory protected_oe property

protected $encoderFactory

$usernameCanonicalizer protected_oe property

protected $usernameCanonicalizer