Skip to content
This repository was archived by the owner on Apr 27, 2022. It is now read-only.

Commit f32bacf

Browse files
author
Nobuhiro Ueda
committed
Add config JsonParser
1 parent a7cd596 commit f32bacf

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,20 @@ Simplifies the declarations of `Field`, removing the need to defined as an array
8282

8383
### Yii Implementation
8484

85+
### General configuration
86+
87+
JsonParser configuration required
88+
89+
```php
90+
'components' => [
91+
'request' => [
92+
'parsers' => [
93+
'application/json' => 'yii\web\JsonParser',
94+
],
95+
],
96+
];
97+
```
98+
8599
#### Module support
86100

87101
Can easily be implemented with `yii\graphql\GraphQLModuleTrait`. The trait is responsible for initialization.

0 commit comments

Comments
 (0)