PHP Класс FOS\UserBundle\Model\UserManager

Автор: Johannes M. Schmitt ([email protected])
Наследование: implements FOS\UserBundle\Model\UserManagerInterface, implements Symfony\Component\Security\Core\User\UserProviderInterface
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$algorithm
$emailCanonicalizer
$encoderFactory
$usernameCanonicalizer

Открытые методы

Метод Описание
__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}

Защищенные методы

Метод Описание
getEncoder ( FOS\UserBundle\Model\UserInterface $user )

Описание методов

__construct() публичный Метод

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() публичный Метод

Returns an empty user instance
public createUser ( ) : User
Результат User

findUserByConfirmationToken() публичный Метод

public findUserByConfirmationToken ( $token )

findUserByEmail() публичный Метод

Finds a user by email
public findUserByEmail ( string $email ) : User
$email string
Результат User

findUserByUsername() публичный Метод

Finds a user by username
public findUserByUsername ( string $username ) : User
$username string
Результат User

findUserByUsernameOrEmail() публичный Метод

Finds a user either by email, or username
public findUserByUsernameOrEmail ( string $usernameOrEmail ) : User
$usernameOrEmail string
Результат User

getEncoder() защищенный Метод

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

loadUserByAccount() публичный Метод

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
Результат User

loadUserByUsername() публичный Метод

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
Результат Symfony\Component\Security\Core\User\AccountInterface

supportsClass() публичный Метод

{@inheritDoc}
public supportsClass ( $class )

updateCanonicalFields() публичный Метод

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

updatePassword() публичный Метод

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

Описание свойств

$algorithm защищенное свойство

protected $algorithm

$emailCanonicalizer защищенное свойство

protected $emailCanonicalizer

$encoderFactory защищенное свойство

protected $encoderFactory

$usernameCanonicalizer защищенное свойство

protected $usernameCanonicalizer