Skip to content

Commit 7379447

Browse files
committed
Add documentation about parsers configuration
1 parent 255bf3a commit 7379447

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ Documentation
9090
- [Errors handling](docs/error-handling/index.md)
9191
- [Events](docs/events/index.md)
9292
- [Profiler](docs/profiler/index.md)
93+
- [Tune configuration](docs/tune_configuration.md)
9394

9495
Talks and slides to help you start
9596
----------------------------------

docs/tune_configuration.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
Tune configuration
2+
==================
3+
4+
Custom GraphQl configuration parsers
5+
------------------------------------
6+
7+
You can configure custom GraphQl configuration parsers.
8+
Your parsers MUST implement at least `\Overblog\GraphQLBundle\Config\Parser\ParserInterface`
9+
and optionally `\Overblog\GraphQLBundle\Config\Parser\PreParserInterface` when required.
10+
11+
Default values will be applied when omitted.
12+
13+
```yaml
14+
overblog_graphql:
15+
# ...
16+
parsers:
17+
yaml: 'Overblog\GraphQLBundle\Config\Parser\YamlParser'
18+
graphql: 'Overblog\GraphQLBundle\Config\Parser\GraphQLParser'
19+
annotation: 'Overblog\GraphQLBundle\Config\Parser\AnnotationParser'
20+
attribute: 'Overblog\GraphQLBundle\Config\Parser\AttributeParser'
21+
# ...
22+
```

0 commit comments

Comments
 (0)