File tree 2 files changed +4
-3
lines changed
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 19
19
"require" : {
20
20
"php" : " >=7.2" ,
21
21
"thecodingmachine/graphqlite" : " ^5.0" ,
22
- "symfony/validator" : " ^4.2 | ^5" ,
22
+ "symfony/validator" : " ^4.2 | ^5 | ^6 " ,
23
23
"doctrine/annotations" : " ^1.6"
24
24
},
25
25
"require-dev" : {
26
26
"phpunit/phpunit" : " ^8.4.1" ,
27
27
"mouf/picotainer" : " ^1.1" ,
28
28
"phpstan/phpstan" : " ^0.12.14" ,
29
29
"php-coveralls/php-coveralls" : " ^2.1.0" ,
30
- "symfony/translation" : " ^4" ,
30
+ "symfony/translation" : " ^4 | ^5 | ^6 " ,
31
31
"doctrine/coding-standard" : " ^9.0"
32
32
},
33
33
"scripts" : {
Original file line number Diff line number Diff line change @@ -35,7 +35,8 @@ private function getSchemaFactory(): SchemaFactory
35
35
},
36
36
ValidatorInterface::class => function (ContainerInterface $ container ) {
37
37
$ build = new ValidatorBuilder ();
38
- $ build ->enableAnnotationMapping (new AnnotationReader ());
38
+ $ build ->enableAnnotationMapping ();
39
+ $ build ->setDoctrineAnnotationReader (new AnnotationReader ());
39
40
$ build ->setTranslator ($ container ->get (TranslatorInterface::class));
40
41
return $ build ->getValidator ();
41
42
},
You can’t perform that action at this time.
0 commit comments