PHP Class FOS\UserBundle\Validator\UniqueValidator

Inheritance: extends Symfony\Component\Validator\ConstraintValidator
Mostra file Open project: KnpLabs/KnpUserBundle

Protected Properties

Property Type Description
$userManager UserManager

Public Methods

Method Description
__construct ( FOS\UserBundle\Model\UserManagerInterface $userManager ) Constructor
getUserManager ( ) : UserManager Gets the user manager
isValid ( Entity $value, Constraint $constraint ) Indicates whether the constraint is valid
setUserManager ( UserManager $userManager ) Sets the user manager

Method Details

__construct() public method

Constructor
public __construct ( FOS\UserBundle\Model\UserManagerInterface $userManager )
$userManager FOS\UserBundle\Model\UserManagerInterface

getUserManager() public method

Gets the user manager
public getUserManager ( ) : UserManager
return UserManager

isValid() public method

Indicates whether the constraint is valid
public isValid ( Entity $value, Constraint $constraint )
$value Entity
$constraint Symfony\Component\Validator\Constraint

setUserManager() public method

Sets the user manager
public setUserManager ( UserManager $userManager )
$userManager UserManager

Property Details

$userManager protected_oe property

protected UserManager $userManager
return UserManager