Symfony\Component\Validator\Mapping\Loader\AbstractLoader::newConstraint
Creates a new constraint instance for the given constraint name.
Signature
protected function newConstraint(string
$name,
array
$options )
Parameters
$name
— string- The constraint name. Either a constraint relative
to the default constraint namespace, or a fully
qualified class name $options
— array- The constraint options
Returns
- Constraint
Errors/Exceptions
-
MappingException
- If the namespace prefix is undefined