class ConstraintValidatorFactory extends ConstraintValidatorFactory

Uses a service container to create constraint validators with dependencies.

Properties

protected Pimple $container
protected array $serviceNames

Methods

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

Constructor.

getInstance(Constraint $constraint)

{@inheritdoc}

Details

at line 41
__construct(Pimple $container, array $serviceNames = array(), $propertyAccessor = null)

Constructor.

Parameters

Pimple $container
array $serviceNames
$propertyAccessor

at line 55
getInstance(Constraint $constraint)

{@inheritdoc}

Parameters

Constraint $constraint