PHP Class Sylius\Bundle\CoreBundle\Validator\Constraints\UniqueReviewerEmailValidator

Author: Mateusz Zalewski ([email protected])
Author: Grzegorz Sadowski ([email protected])
Inheritance: extends Symfony\Component\Validator\ConstraintValidator
Exibir arquivo Open project: sylius/sylius

Public Methods

Method Description
__construct ( Sylius\Component\User\Repository\UserRepositoryInterface $userRepository, Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface $tokenStorage, Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface $authorizationChecker )
validate ( $review, Constraint $constraint )

Private Methods

Method Description
checkIfUserIsAuthenticated ( Symfony\Component\Security\Core\Authentication\Token\TokenInterface $token ) : boolean

Method Details

__construct() public method

public __construct ( Sylius\Component\User\Repository\UserRepositoryInterface $userRepository, Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface $tokenStorage, Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface $authorizationChecker )
$userRepository Sylius\Component\User\Repository\UserRepositoryInterface
$tokenStorage Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface
$authorizationChecker Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface

validate() public method

public validate ( $review, Constraint $constraint )
$constraint Symfony\Component\Validator\Constraint