File tree Expand file tree Collapse file tree 5 files changed +11
-3
lines changed
App/config/customScalar/mapping Expand file tree Collapse file tree 5 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ matrix:
26
26
- php : 7.2
27
27
env : SYMFONY_VERSION=3.3.*
28
28
- php : 7.2
29
- env : SYMFONY_VERSION=3.4.* GRAPHQLPHP_VERSION=0.10.0 DEPENDENCIES=dev
29
+ env : SYMFONY_VERSION=3.4.*
30
30
- php : 7.2
31
31
env : SYMFONY_VERSION=4.0.* TEST_COVERAGE=true
32
32
- php : 7.2
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ public function getDefinition()
14
14
$ node
15
15
->children ()
16
16
->append ($ this ->nameSection ())
17
+ ->append ($ this ->descriptionSection ())
17
18
->variableNode ('serialize ' )->isRequired ()->end ()
18
19
->variableNode ('parseValue ' )->isRequired ()->end ()
19
20
->variableNode ('parseLiteral ' )->isRequired ()->end ()
Original file line number Diff line number Diff line change 1
1
DateTime :
2
2
type : custom-scalar
3
3
config :
4
+ description : " The DateTime type"
4
5
serialize : ["Overblog\\GraphQLGenerator\\Tests\\DateTimeType", "serialize"]
5
6
parseValue : ["Overblog\\GraphQLGenerator\\Tests\\DateTimeType", "parseValue"]
6
7
parseLiteral : ["Overblog\\GraphQLGenerator\\Tests\\DateTimeType", "parseLiteral"]
Original file line number Diff line number Diff line change @@ -30,4 +30,10 @@ public function testDateTimeTypeParseValue()
30
30
];
31
31
$ this ->assertGraphQL ($ query , $ expected );
32
32
}
33
+
34
+ public function testDateTimeTypeDescription ()
35
+ {
36
+ $ dateTimeType = static ::$ kernel ->getContainer ()->get ('overblog_graphql.type_resolver ' )->resolve ('DateTime ' );
37
+ $ this ->assertEquals ('The DateTime type ' , $ dateTimeType ->description );
38
+ }
33
39
}
Original file line number Diff line number Diff line change 31
31
"require" : {
32
32
"php" : " >=5.6" ,
33
33
"doctrine/doctrine-cache-bundle" : " ^1.2" ,
34
- "overblog/graphql-php-generator" : " ^0.6 .0" ,
34
+ "overblog/graphql-php-generator" : " ^0.7 .0" ,
35
35
"symfony/cache" : " ^3.1 || ^4.0" ,
36
36
"symfony/config" : " ^3.1 || ^4.0" ,
37
37
"symfony/dependency-injection" : " ^3.1 || ^4.0" ,
38
38
"symfony/expression-language" : " ^3.1 || ^4.0" ,
39
39
"symfony/framework-bundle" : " ^3.1 || ^4.0" ,
40
40
"symfony/options-resolver" : " ^3.1 || ^4.0" ,
41
41
"symfony/property-access" : " ^3.1 || ^4.0" ,
42
- "webonyx/graphql-php" : " ^0.10.0 || ^0. 11.0 "
42
+ "webonyx/graphql-php" : " ^0.11.2 "
43
43
},
44
44
"suggest" : {
45
45
"nelmio/cors-bundle" : " For more flexibility when using CORS prefight" ,
You can’t perform that action at this time.
0 commit comments