PHP Class spec\Sylius\Bundle\CoreBundle\Validator\Constraints\UniqueReviewerEmailValidatorSpec

Author: Mateusz Zalewski ([email protected])
Author: Grzegorz Sadowski ([email protected])
Inheritance: extends PhpSpec\ObjectBehavior
显示文件 Open project: sylius/sylius

Public Methods

Method Description
it_extends_constraint_validator_class ( )
it_is_initializable ( )
it_validates_if_user_with_given_email_is_already_registered ( Sylius\Bundle\UserBundle\Doctrine\ORM\UserRepository $userRepository, Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface $tokenStorage, Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface $authorizationChecker, Symfony\Component\Validator\Context\ExecutionContextInterface $executionContextInterface, Symfony\Component\Validator\Violation\ConstraintViolationBuilderInterface $constraintViolationBuilder, Symfony\Component\Security\Core\Authentication\Token\TokenInterface $token, Sylius\Component\Review\Model\ReviewInterface $review, Sylius\Component\Customer\Model\CustomerInterface $customer, Sylius\Component\Customer\Model\CustomerInterface $existingUser )
let ( Sylius\Bundle\UserBundle\Doctrine\ORM\UserRepository $userRepository, Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface $tokenStorage, Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface $authorizationChecker, Symfony\Component\Validator\Context\ExecutionContextInterface $executionContextInterface )

Method Details

it_extends_constraint_validator_class() public method

it_is_initializable() public method

public it_is_initializable ( )

it_validates_if_user_with_given_email_is_already_registered() public method

public it_validates_if_user_with_given_email_is_already_registered ( Sylius\Bundle\UserBundle\Doctrine\ORM\UserRepository $userRepository, Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface $tokenStorage, Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface $authorizationChecker, Symfony\Component\Validator\Context\ExecutionContextInterface $executionContextInterface, Symfony\Component\Validator\Violation\ConstraintViolationBuilderInterface $constraintViolationBuilder, Symfony\Component\Security\Core\Authentication\Token\TokenInterface $token, Sylius\Component\Review\Model\ReviewInterface $review, Sylius\Component\Customer\Model\CustomerInterface $customer, Sylius\Component\Customer\Model\CustomerInterface $existingUser )
$userRepository Sylius\Bundle\UserBundle\Doctrine\ORM\UserRepository
$tokenStorage Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface
$authorizationChecker Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface
$executionContextInterface Symfony\Component\Validator\Context\ExecutionContextInterface
$constraintViolationBuilder Symfony\Component\Validator\Violation\ConstraintViolationBuilderInterface
$token Symfony\Component\Security\Core\Authentication\Token\TokenInterface
$review Sylius\Component\Review\Model\ReviewInterface
$customer Sylius\Component\Customer\Model\CustomerInterface
$existingUser Sylius\Component\Customer\Model\CustomerInterface

let() public method

public let ( Sylius\Bundle\UserBundle\Doctrine\ORM\UserRepository $userRepository, Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface $tokenStorage, Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface $authorizationChecker, Symfony\Component\Validator\Context\ExecutionContextInterface $executionContextInterface )
$userRepository Sylius\Bundle\UserBundle\Doctrine\ORM\UserRepository
$tokenStorage Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface
$authorizationChecker Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface
$executionContextInterface Symfony\Component\Validator\Context\ExecutionContextInterface