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
Mostra file Open project: KnpLabs/KnpUserBundle Class Usage Examples

Protected Properties

Property Type Description
$algorithm
$emailCanonicalizer
$encoderFactory
$usernameCanonicalizer

Public Methods

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

Protected Methods

Method Description
getEncoder ( FOS\UserBundle\Model\UserInterface $user )

Method Details

__construct() public method

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 method

Returns an empty user instance
public createUser ( ) : User
return User

findUserByConfirmationToken() public method

public findUserByConfirmationToken ( $token )

findUserByEmail() public method

Finds a user by email
public findUserByEmail ( string $email ) : User
$email string
return User

findUserByUsername() public method

Finds a user by username
public findUserByUsername ( string $username ) : User
$username string
return User

findUserByUsernameOrEmail() public method

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

getEncoder() protected method

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

loadUserByAccount() public method

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
return User

loadUserByUsername() public method

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
return Symfony\Component\Security\Core\User\AccountInterface

supportsClass() public method

{@inheritDoc}
public supportsClass ( $class )

updateCanonicalFields() public method

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

updatePassword() public method

{@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