File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
src/Symfony/Bundle/FrameworkBundle/Resources/config Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 1313
1414use Symfony \Bundle \FrameworkBundle \CacheWarmer \ValidatorCacheWarmer ;
1515use Symfony \Component \Cache \Adapter \PhpArrayAdapter ;
16+ use Symfony \Component \ExpressionLanguage \ExpressionLanguage ;
1617use Symfony \Component \Validator \Constraints \EmailValidator ;
1718use Symfony \Component \Validator \Constraints \ExpressionValidator ;
1819use Symfony \Component \Validator \Constraints \NotCompromisedPasswordValidator ;
6667 ])
6768
6869 ->set ('validator.expression ' , ExpressionValidator::class)
70+ ->args ([service ('validator.expression_language ' )->nullOnInvalid ()])
6971 ->tag ('validator.constraint_validator ' , [
7072 'alias ' => 'validator.expression ' ,
7173 ])
7274
75+ ->set ('validator.expression_language ' , ExpressionLanguage::class)
76+ ->args ([service ('cache.validator_expression_language ' )->nullOnInvalid ()])
77+
78+ ->set ('cache.validator_expression_language ' )
79+ ->parent ('cache.system ' )
80+ ->tag ('cache.pool ' )
81+
7382 ->set ('validator.email ' , EmailValidator::class)
7483 ->args ([
7584 abstract_arg ('Default mode ' ),
You can’t perform that action at this time.
0 commit comments