use Symfony\Component\Validator\Constraints\NoSuspiciousCharactersValidator;
use Symfony\Component\Validator\Constraints\NotCompromisedPasswordValidator;
use Symfony\Component\Validator\Constraints\WhenValidator;
use Symfony\Component\Validator\ContainerConstraintValidatorFactory;
use Symfony\Component\Validator\Mapping\Loader\PropertyInfoLoader;
use Symfony\Component\Validator\Validation;
use Symfony\Component\Validator\Validator\ValidatorInterface;
use Symfony\Component\Validator\ValidatorBuilder;
return static function DContainerConfigurator
$container) { $container->
parameters() ->
set('validator.mapping.cache.file',
param('kernel.cache_dir'
).'/validation.php'
);
$validatorsDir = \
dirname((new \
ReflectionClass(EmailValidator::
class))->
getFileName());
$container->
services() ->
set('validator', ValidatorInterface::
class) ->
factory([service('validator.builder'
), 'getValidator'
]) ->
alias(ValidatorInterface::
class, 'validator'
) ->
set('validator.builder', ValidatorBuilder::
class) ->
factory([Validation::
class, 'createValidatorBuilder'
]) ->
call('setConstraintValidatorFactory',
[