class ConstraintValidatorFactory extends ConstraintValidatorFactory

Uses a service container to create constraint validators with dependencies.

Properties

protected Container $container
protected array $serviceNames

Methods

__construct(Container $container, array $serviceNames = array(), $propertyAccessor = null)

Constructor.

getInstance(Constraint $constraint)

{@inheritdoc}

Details

at line 42
__construct(Container $container, array $serviceNames = array(), $propertyAccessor = null)

Constructor.

Parameters

Container $container
array $serviceNames
$propertyAccessor

at line 53
getInstance(Constraint $constraint)

{@inheritdoc}

Parameters

Constraint $constraint