->
args([ param('validator.mapping.cache.file'
),
service('cache.validator'
),
]) ->
set('validator.validator_factory', ContainerConstraintValidatorFactory::
class) ->
args([ abstract_arg('Constraint validators locator'
),
]) ->
load('Symfony\Component\Validator\Constraints\\',
$validatorsDir.'/*Validator.php'
) ->
exclude($validatorsDir.'/ExpressionLanguageSyntaxValidator.php'
) ->
abstract() ->
tag('container.excluded'
) ->
tag('validator.constraint_validator'
) ->
set('validator.expression', ExpressionValidator::
class) ->
args([service('validator.expression_language'
)->
nullOnInvalid()]) ->
tag('validator.constraint_validator',
[ 'alias' => 'validator.expression',
]) ->
set('validator.expression_language', ExpressionLanguage::
class)