Skip to content

struct Athena::Validator::ConstraintValidatorFactory
inherits Struct #

Basic implementation of AVD::ConstraintValidatorFactoryInterface.

Included modules

Athena::Validator::ConstraintValidatorFactoryInterface

Methods#

#validator(validator_class : AVD::ServiceConstraintValidator.class) : AVD::ConstraintValidator #

Returns an AVD::ConstraintValidator based on the provided validator_class.

NOTE: This overloaded is intended to be used for service based validators that are already instantiated and were provided via DI.

View source

#validator(validator_class : AVD::ConstraintValidator.class) : AVD::ConstraintValidator #

Returns an AVD::ConstraintValidator based on the provided validator_class.

View source