Skip to content

ConstraintValidatorFactoryInterface

module Athena::Validator::ConstraintValidatorFactoryInterface

Provides validator instances based on a validator class, caching the instance.

AVD::ServiceConstraintValidators are instantiated externally and injected into the factory.

Direct including types

Athena::Validator::ConstraintValidatorFactory

Methods

abstract #validator(validator : AVD::ConstraintValidator.class) : AVD::ConstraintValidatorInterface

Returns an AVD::ConstraintValidatorInterface instance based on the provided validator_class.