File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 13
13
14
14
use Symfony \Bundle \FrameworkBundle \CacheWarmer \ValidatorCacheWarmer ;
15
15
use Symfony \Component \Cache \Adapter \PhpArrayAdapter ;
16
+ use Symfony \Component \ExpressionLanguage \ExpressionLanguage ;
16
17
use Symfony \Component \Validator \Constraints \EmailValidator ;
17
18
use Symfony \Component \Validator \Constraints \ExpressionValidator ;
18
19
use Symfony \Component \Validator \Constraints \NotCompromisedPasswordValidator ;
66
67
])
67
68
68
69
->set ('validator.expression ' , ExpressionValidator::class)
70
+ ->args ([service ('validator.expression_language ' )->nullOnInvalid ()])
69
71
->tag ('validator.constraint_validator ' , [
70
72
'alias ' => 'validator.expression ' ,
71
73
])
72
74
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
+
73
82
->set ('validator.email ' , EmailValidator::class)
74
83
->args ([
75
84
abstract_arg ('Default mode ' ),
You can’t perform that action at this time.
0 commit comments